mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
USB: serial: keyspan_pda: remove unused variable
Remove an unused variable which was mistakingly left by commit
37faf50615 ("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
83b74059fd
commit
c1a0af0cb4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user