summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/jsm
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2013-03-07 13:12:25 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-18 16:17:20 -0700
commitb1622e0ac1b18632cff1e9af807fcdcb2397071b (patch)
treeef18726b80319e87edd0f1162b8094ff36691879 /drivers/tty/serial/jsm
parent6be06e7273c4682a15ca1f4adf1aeae510823530 (diff)
downloadop-kernel-dev-b1622e0ac1b18632cff1e9af807fcdcb2397071b.zip
op-kernel-dev-b1622e0ac1b18632cff1e9af807fcdcb2397071b.tar.gz
TTY: jsm, remove superfluous check
data_len in jsm_input cannot be zero as we would jump out early in the function. It also cannot be negative because it is an int and we do bitwise and with 8192. So remove the check. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Cc: Lucas Tavares <lucaskt@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/jsm')
-rw-r--r--drivers/tty/serial/jsm/jsm_tty.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/tty/serial/jsm/jsm_tty.c b/drivers/tty/serial/jsm/jsm_tty.c
index 00f250a..27bb750 100644
--- a/drivers/tty/serial/jsm/jsm_tty.c
+++ b/drivers/tty/serial/jsm/jsm_tty.c
@@ -596,12 +596,6 @@ void jsm_input(struct jsm_channel *ch)
jsm_dbg(READ, &ch->ch_bd->pci_dev, "start 2\n");
- if (data_len <= 0) {
- spin_unlock_irqrestore(&ch->ch_lock, lock_flags);
- jsm_dbg(READ, &ch->ch_bd->pci_dev, "jsm_input 1\n");
- return;
- }
-
len = tty_buffer_request_room(port, data_len);
n = len;
OpenPOWER on IntegriCloud