]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
mxser: remove unnesesary NULL check
authorKulikov Vasiliy <segooon@gmail.com>
Fri, 23 Jul 2010 16:34:53 +0000 (20:34 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 20:47:45 +0000 (13:47 -0700)
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>
drivers/char/mxser.c

index d2692d443f7bf9b721ba52e9b376883c2bf1e16e..3fc89da856ae96dd6455fea515ff992f3e9bce74 100644 (file)
@@ -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) {