summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-11-29 13:49:54 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-12-03 01:15:02 +0100
commit6aeab4775262a606b56fef5272ec045ff647602e (patch)
tree5ff5b890c705a17827a9b81f2d98c8254e4b6a0e /drivers/usb
parentwusb: replace memset by memzero_explicit (diff)
downloadlinux-6aeab4775262a606b56fef5272ec045ff647602e.tar.xz
linux-6aeab4775262a606b56fef5272ec045ff647602e.zip
USB: mos7720: delete some unneeded code
The "status" is uninitialized so this creates a static checker warning. But it's harmless, we can just delete it. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/serial/mos7720.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c
index 312b0fee8d54..4f70df33975a 100644
--- a/drivers/usb/serial/mos7720.c
+++ b/drivers/usb/serial/mos7720.c
@@ -1299,8 +1299,6 @@ static void mos7720_throttle(struct tty_struct *tty)
mos7720_port->shadowMCR &= ~UART_MCR_RTS;
write_mos_reg(port->serial, port->port_number, MCR,
mos7720_port->shadowMCR);
- if (status != 0)
- return;
}
}
@@ -1331,8 +1329,6 @@ static void mos7720_unthrottle(struct tty_struct *tty)
mos7720_port->shadowMCR |= UART_MCR_RTS;
write_mos_reg(port->serial, port->port_number, MCR,
mos7720_port->shadowMCR);
- if (status != 0)
- return;
}
}