diff options
author | Vojtech Pavlik <vojtech@suse.cz> | 2005-09-05 00:13:03 -0500 |
---|---|---|
committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2005-09-05 00:13:03 -0500 |
commit | c4786ca8a4274a0bbffe217917972943348bed64 (patch) | |
tree | b79be187f17357e5a9923c36cf62b878ab00285e /drivers/usb/input | |
parent | 8d9a9ae3b2941d94bb0023a3aca2ec2bfa83d0c2 (diff) | |
download | op-kernel-dev-c4786ca8a4274a0bbffe217917972943348bed64.zip op-kernel-dev-c4786ca8a4274a0bbffe217917972943348bed64.tar.gz |
Input: HID - fix URB success status handling
Add a missing break; statement to the URB status handling
in hid-core.c, avoiding flushing the request queue on success.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/usb/input')
-rw-r--r-- | drivers/usb/input/hid-core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/input/hid-core.c b/drivers/usb/input/hid-core.c index 376b604..7d5eb4d 100644 --- a/drivers/usb/input/hid-core.c +++ b/drivers/usb/input/hid-core.c @@ -1097,6 +1097,7 @@ static void hid_irq_out(struct urb *urb, struct pt_regs *regs) switch (urb->status) { case 0: /* success */ + break; case -ESHUTDOWN: /* unplug */ case -EILSEQ: /* unplug timeout on uhci */ unplug = 1; @@ -1144,6 +1145,7 @@ static void hid_ctrl(struct urb *urb, struct pt_regs *regs) case 0: /* success */ if (hid->ctrl[hid->ctrltail].dir == USB_DIR_IN) hid_input_report(hid->ctrl[hid->ctrltail].report->type, urb, 0, regs); + break; case -ESHUTDOWN: /* unplug */ case -EILSEQ: /* unplug timectrl on uhci */ unplug = 1; |