]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
USB: serial: keyspan_pda: remove unused variable
authorJohan Hovold <johan@kernel.org>
Fri, 8 Jan 2021 14:55:28 +0000 (15:55 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 19 Feb 2021 15:44:02 +0000 (16:44 +0100)
BugLink: https://bugs.launchpad.net/bugs/1913486
Remove an unused variable which was mistakingly left by commit
37faf5061541 ("USB: serial: keyspan_pda: fix write-wakeup
use-after-free") and only removed by a later change.

This is needed to suppress a W=1 warning about the unused variable in
the stable trees that the build bots triggers.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: William Breathitt Gray <william.gray@canonical.com>
drivers/usb/serial/keyspan_pda.c

index fab6aa8a676aa071988678723de2da99f647117c..5dd228da5bdd553ef3c1b6344cee78c20c2cc19e 100644 (file)
@@ -555,10 +555,8 @@ exit:
 static void keyspan_pda_write_bulk_callback(struct urb *urb)
 {
        struct usb_serial_port *port = urb->context;
-       struct keyspan_pda_private *priv;
 
        set_bit(0, &port->write_urbs_free);
-       priv = usb_get_serial_port_data(port);
 
        /* queue up a wakeup at scheduler time */
        usb_serial_port_softint(port);