[PATCH] USB serial: encapsulate schedule_work, remove double-calling
I'm going to throw schedule_work away, it's retarded. But for starters, let's have it encapsulated. Also, generic and whiteheat were both calling usb_serial_port_softint and scheduled work. Only one was necessary. Signed-off-by: Pete Zaitcev <zaitcev@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ad93375a30
commit
cf2c7481d2
@@ -481,7 +481,7 @@ static void usa2x_outdat_callback(struct urb *urb, struct pt_regs *regs)
|
||||
dbg ("%s - urb %d", __FUNCTION__, urb == p_priv->out_urbs[1]);
|
||||
|
||||
if (port->open_count)
|
||||
schedule_work(&port->work);
|
||||
usb_serial_port_softint(port);
|
||||
}
|
||||
|
||||
static void usa26_inack_callback(struct urb *urb, struct pt_regs *regs)
|
||||
|
Reference in New Issue
Block a user