Commit 70a6f2e6 authored by Michael Gruber's avatar Michael Gruber Committed by Dmitry Torokhov

Input: xpad - don't resend successfully sent outgoing requests

This avoids an infinite loop.
Signed-off-by: default avatarMichael Gruber <lists.mg@googlemail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent e705cee4
...@@ -470,20 +470,20 @@ static void xpad_irq_out(struct urb *urb) ...@@ -470,20 +470,20 @@ static void xpad_irq_out(struct urb *urb)
status = urb->status; status = urb->status;
switch (status) { switch (status) {
case 0: case 0:
/* success */ /* success */
break; return;
case -ECONNRESET:
case -ENOENT: case -ECONNRESET:
case -ESHUTDOWN: case -ENOENT:
/* this urb is terminated, clean up */ case -ESHUTDOWN:
dbg("%s - urb shutting down with status: %d", /* this urb is terminated, clean up */
__func__, status); dbg("%s - urb shutting down with status: %d", __func__, status);
return; return;
default:
dbg("%s - nonzero urb status received: %d", default:
__func__, status); dbg("%s - nonzero urb status received: %d", __func__, status);
goto exit; goto exit;
} }
exit: exit:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment