summaryrefslogtreecommitdiffstats
path: root/drivers/char/mxser.c
diff options
context:
space:
mode:
authorKulikov Vasiliy <segooon@gmail.com>2010-07-23 20:34:53 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-10 13:47:45 -0700
commit464eb8f596fcbdadcfbbdb4a84847ffcb93cc4dd (patch)
tree5fda5926be75e771d97a121ac2e31ea0bf677e20 /drivers/char/mxser.c
parente847003f00d5eca3e3b3a6a1199f82b51293faf6 (diff)
downloadlinux-stable-464eb8f596fcbdadcfbbdb4a84847ffcb93cc4dd.tar.gz
linux-stable-464eb8f596fcbdadcfbbdb4a84847ffcb93cc4dd.tar.bz2
linux-stable-464eb8f596fcbdadcfbbdb4a84847ffcb93cc4dd.zip
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>
Diffstat (limited to 'drivers/char/mxser.c')
-rw-r--r--drivers/char/mxser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/mxser.c b/drivers/char/mxser.c
index d2692d443f7b..3fc89da856ae 100644
--- a/drivers/char/mxser.c
+++ b/drivers/char/mxser.c
@@ -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) {