summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2013-01-03 15:53:40 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-15 22:43:16 -0800
commitfa47ba75ec2d5818d7aeeb540e738827c4b69194 (patch)
tree6042aeb0a63b820d65a1086488fcf911b584c6ed
parentcc5ab61086334e72afdf970c032fecf5e5fcf7ca (diff)
downloadblackbird-op-linux-fa47ba75ec2d5818d7aeeb540e738827c4b69194.tar.gz
blackbird-op-linux-fa47ba75ec2d5818d7aeeb540e738827c4b69194.zip
TTY: nozomi, remove dead code
We test for !dc twice, remove the second test. Coverity found this. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/tty/nozomi.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/tty/nozomi.c b/drivers/tty/nozomi.c
index afdd7732d925..2dff19796157 100644
--- a/drivers/tty/nozomi.c
+++ b/drivers/tty/nozomi.c
@@ -1679,12 +1679,6 @@ static int ntty_write(struct tty_struct *tty, const unsigned char *buffer,
rval = kfifo_in(&port->fifo_ul, (unsigned char *)buffer, count);
- /* notify card */
- if (unlikely(dc == NULL)) {
- DBG1("No device context?");
- goto exit;
- }
-
spin_lock_irqsave(&dc->spin_mutex, flags);
/* CTS is only valid on the modem channel */
if (port == &(dc->port[PORT_MDM])) {
@@ -1700,7 +1694,6 @@ static int ntty_write(struct tty_struct *tty, const unsigned char *buffer,
}
spin_unlock_irqrestore(&dc->spin_mutex, flags);
-exit:
return rval;
}
OpenPOWER on IntegriCloud