aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/option.c
diff options
context:
space:
mode:
authorPete Zaitcev <zaitcev@redhat.com>2006-05-23 00:58:49 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-06-21 18:04:13 -0400
commitcf2c7481d2ff7f0c266de873b2fe93883e9782f9 (patch)
tree35dba35b3969f431feb0dfe5732c3825aa077a22 /drivers/usb/serial/option.c
parentad93375a30334cd97a61f7076d242e1cfdb66abc (diff)
[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>
Diffstat (limited to 'drivers/usb/serial/option.c')
-rw-r--r--drivers/usb/serial/option.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
index 5cf2b80add7a..759d36087184 100644
--- a/drivers/usb/serial/option.c
+++ b/drivers/usb/serial/option.c
@@ -365,8 +365,7 @@ static void option_outdat_callback(struct urb *urb, struct pt_regs *regs)
365 365
366 port = (struct usb_serial_port *) urb->context; 366 port = (struct usb_serial_port *) urb->context;
367 367
368 if (port->open_count) 368 usb_serial_port_softint(port);
369 schedule_work(&port->work);
370} 369}
371 370
372static void option_instat_callback(struct urb *urb, struct pt_regs *regs) 371static void option_instat_callback(struct urb *urb, struct pt_regs *regs)