summaryrefslogtreecommitdiffstats
path: root/drivers/input/joystick
diff options
context:
space:
mode:
authorMichael Gruber <lists.mg@googlemail.com>2009-07-13 05:51:36 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2009-07-13 07:14:25 +0200
commit70a6f2e6d6b8653d394b63210ec57b4c78f3dcd8 (patch)
treec663dbfa6f178eaf0003115247a2784c49c97d85 /drivers/input/joystick
parentInput: wistron_btns - recognize Maxdata Pro 7000 notebooks (diff)
downloadlinux-70a6f2e6d6b8653d394b63210ec57b4c78f3dcd8.tar.xz
linux-70a6f2e6d6b8653d394b63210ec57b4c78f3dcd8.zip
Input: xpad - don't resend successfully sent outgoing requests
This avoids an infinite loop. Signed-off-by: Michael Gruber <lists.mg@googlemail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/joystick')
-rw-r--r--drivers/input/joystick/xpad.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c
index b868b8d5fbb3..f155ad8cdae7 100644
--- a/drivers/input/joystick/xpad.c
+++ b/drivers/input/joystick/xpad.c
@@ -470,20 +470,20 @@ static void xpad_irq_out(struct urb *urb)
status = urb->status;
switch (status) {
- case 0:
+ case 0:
/* success */
- break;
- case -ECONNRESET:
- case -ENOENT:
- case -ESHUTDOWN:
- /* this urb is terminated, clean up */
- dbg("%s - urb shutting down with status: %d",
- __func__, status);
- return;
- default:
- dbg("%s - nonzero urb status received: %d",
- __func__, status);
- goto exit;
+ return;
+
+ case -ECONNRESET:
+ case -ENOENT:
+ case -ESHUTDOWN:
+ /* this urb is terminated, clean up */
+ dbg("%s - urb shutting down with status: %d", __func__, status);
+ return;
+
+ default:
+ dbg("%s - nonzero urb status received: %d", __func__, status);
+ goto exit;
}
exit: