Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mxser: remove unnesesary NULL check

mxser_transmit_chars(tty, port) is called only from mxser_interrupt().
NULL check is performed in mxser_interrupt() so it is redundant here.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Acked-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Kulikov Vasiliy and committed by
Greg Kroah-Hartman
464eb8f5 e847003f

+1 -1
+1 -1
drivers/char/mxser.c
··· 2193 2193 port->mon_data.up_txcnt += (cnt - port->xmit_cnt); 2194 2194 port->icount.tx += (cnt - port->xmit_cnt); 2195 2195 2196 - if (port->xmit_cnt < WAKEUP_CHARS && tty) 2196 + if (port->xmit_cnt < WAKEUP_CHARS) 2197 2197 tty_wakeup(tty); 2198 2198 2199 2199 if (port->xmit_cnt <= 0) {