Merge branch 'futexes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[platform/kernel/linux-starfive.git] / drivers / char / mxser.c
index d2692d4..3fc89da 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) {