diff options
author | Sudip Mukherjee <sudip.mukherjee@codethink.co.uk> | 2017-01-03 21:01:10 +0000 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2017-01-16 12:26:58 +0100 |
commit | 56e6d90797b4d8300e617a4f7b6ac216cf248041 (patch) | |
tree | ffd99be9e4a9b9b6e9441a9fbf30ebbef5864d36 /drivers/usb/serial | |
parent | 49def1853334396f948dcb4cedb9347abb318df5 (diff) |
USB: serial: cypress_m8: remove unused variable
The variable havedata was only being set but never used afterwards.
Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/cypress_m8.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c index bbeeb2bd55a8..90110de715e0 100644 --- a/drivers/usb/serial/cypress_m8.c +++ b/drivers/usb/serial/cypress_m8.c @@ -1069,7 +1069,6 @@ static void cypress_read_int_callback(struct urb *urb) unsigned char *data = urb->transfer_buffer; unsigned long flags; char tty_flag = TTY_NORMAL; - int havedata = 0; int bytes = 0; int result; int i = 0; @@ -1118,16 +1117,12 @@ static void cypress_read_int_callback(struct urb *urb) priv->current_status = data[0] & 0xF8; bytes = data[1] + 2; i = 2; - if (bytes > 2) - havedata = 1; break; case packet_format_2: /* This is for the CY7C63743... */ priv->current_status = data[0] & 0xF8; bytes = (data[0] & 0x07) + 1; i = 1; - if (bytes > 1) - havedata = 1; break; } spin_unlock_irqrestore(&priv->lock, flags); |