summaryrefslogtreecommitdiffstats
path: root/drivers/tty/isicom.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-07-23 17:03:14 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-04 12:43:44 +0200
commit95604220cec8eb5bcde9041625ae8570f1077da6 (patch)
tree343a7688956ad96134f5959b0e1704319fba6418 /drivers/tty/isicom.c
parenttty: serial: Remove call to memset after pci_alloc_consistent (diff)
downloadlinux-95604220cec8eb5bcde9041625ae8570f1077da6.tar.xz
linux-95604220cec8eb5bcde9041625ae8570f1077da6.zip
tty/isicom: remove redundant assignment to variable word_count
The variable word_count is being assigned a value that is never read before a return, the assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20190723150314.14513-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/isicom.c')
-rw-r--r--drivers/tty/isicom.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/tty/isicom.c b/drivers/tty/isicom.c
index e04a43e89f6b..fc38f96475bf 100644
--- a/drivers/tty/isicom.c
+++ b/drivers/tty/isicom.c
@@ -553,7 +553,6 @@ static irqreturn_t isicom_interrupt(int irq, void *dev_id)
tty = tty_port_tty_get(&port->port);
if (tty == NULL) {
- word_count = byte_count >> 1;
while (byte_count > 1) {
inw(base);
byte_count -= 2;