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>
This commit is contained in:
parent
e705cee427
commit
70a6f2e6d6
1 changed files with 13 additions and 13 deletions
|
@ -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:
|
||||||
|
|
Reference in a new issue