summaryrefslogtreecommitdiffstats
path: root/drivers/char
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
parente847003f00d5eca3e3b3a6a1199f82b51293faf6 (diff)
downloadop-kernel-dev-464eb8f596fcbdadcfbbdb4a84847ffcb93cc4dd.zip
op-kernel-dev-464eb8f596fcbdadcfbbdb4a84847ffcb93cc4dd.tar.gz
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')
-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 d2692d4..3fc89da 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) {
OpenPOWER on IntegriCloud