USB: serial: keyspan_pda: drop unused firmware reset status
authorJohan Hovold <johan@kernel.org>
Wed, 1 Jul 2020 16:53:40 +0000 (18:53 +0200)
committerJohan Hovold <johan@kernel.org>
Thu, 2 Jul 2020 08:38:42 +0000 (10:38 +0200)
Drop the unused firmware reset status which would already have been
logged.

This suppresses the corresponding W=1 (-Wunused-but-set-variable)
warning.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/keyspan_pda.c

index bf988f7..c133391 100644 (file)
@@ -664,11 +664,10 @@ static void keyspan_pda_close(struct usb_serial_port *port)
 /* download the firmware to a "fake" device (pre-renumeration) */
 static int keyspan_pda_fake_startup(struct usb_serial *serial)
 {
-       int response;
        const char *fw_name;
 
        /* download the firmware here ... */
-       response = ezusb_fx1_set_reset(serial->dev, 1);
+       ezusb_fx1_set_reset(serial->dev, 1);
 
        if (0) { ; }
 #ifdef KEYSPAN