Skip to content

Commit

Permalink
mxser: remove unnesesary NULL check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kulikov Vasiliy authored and Greg Kroah-Hartman committed Aug 10, 2010
1 parent e847003 commit 464eb8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/mxser.c
Original file line number Diff line number Diff line change
Expand Up @@ -2193,7 +2193,7 @@ static void mxser_transmit_chars(struct tty_struct *tty, struct mxser_port *port
port->mon_data.up_txcnt += (cnt - port->xmit_cnt);
port->icount.tx += (cnt - port->xmit_cnt);

if (port->xmit_cnt < WAKEUP_CHARS && tty)
if (port->xmit_cnt < WAKEUP_CHARS)
tty_wakeup(tty);

if (port->xmit_cnt <= 0) {
Expand Down

0 comments on commit 464eb8f

Please sign in to comment.