diff options
author | Johan Hovold <johan@kernel.org> | 2021-01-08 15:55:28 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-01-12 20:18:22 +0100 |
commit | 3f47b182241f3ec313bb0a743d720182713b1e3f (patch) | |
tree | 6397b6872618f9b0e839765ef65d7e0c3603d272 /drivers/usb/serial/keyspan_pda.c | |
parent | a4b202cba3ab1a7a8b1ca92603931fba5e2032c3 (diff) | |
download | kernel_replicant_linux-3f47b182241f3ec313bb0a743d720182713b1e3f.tar.gz kernel_replicant_linux-3f47b182241f3ec313bb0a743d720182713b1e3f.tar.bz2 kernel_replicant_linux-3f47b182241f3ec313bb0a743d720182713b1e3f.zip |
USB: serial: keyspan_pda: remove unused variable
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>
Diffstat (limited to 'drivers/usb/serial/keyspan_pda.c')
-rw-r--r-- | drivers/usb/serial/keyspan_pda.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/serial/keyspan_pda.c b/drivers/usb/serial/keyspan_pda.c index 39ed3ad32365..aec32bf06e01 100644 --- a/drivers/usb/serial/keyspan_pda.c +++ b/drivers/usb/serial/keyspan_pda.c @@ -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); |