USB: cypress_m8: remove unused variable
Subsystems (2)
PATCH 1/1 USB: cypress_m8: remove unused variable
The variable havedata was only being set but never used afterwards.
Signed-off-by Sudip Mukherjee <[email protected]>
--- drivers/usb/serial/cypress_m8.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/usb/serial/cypress_m8.c +0 -5
@@ -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);
Signature · 1 line
1.9.1
Johan Hovold
maintainerQuoted 3 lines · Sudip Mukherjee
The variable havedata was only being set but never used afterwards.
Signed-off-by Sudip Mukherjee <[email protected]>
Thanks, I'll queue this up for 4.11.
Johan
Johan Hovold
maintainerQuoted 6 lines · Johan Hovold
Quoted 3 lines · Sudip Mukherjee
The variable havedata was only being set but never used afterwards.
Signed-off-by Sudip Mukherjee <[email protected]>Thanks, I'll queue this up for 4.11.
Now applied, thanks.
Johan
Johan Hovold
maintainerQuoted 9 lines · Johan Hovold
Quoted 6 lines · Johan Hovold
Quoted 3 lines · Sudip Mukherjee
The variable havedata was only being set but never used afterwards.
Signed-off-by Sudip Mukherjee <[email protected]>Thanks, I'll queue this up for 4.11.
Now applied, thanks.
Oh, wait. Please resend this one and make sure your From (author) address matches your Signed-off-by tag.
Thanks,
Johan