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:
Michael Gruber
2009-07-12 20:51:36 -07:00
committed by Dmitry Torokhov
parent e705cee427
commit 70a6f2e6d6

View File

@@ -472,17 +472,17 @@ static void xpad_irq_out(struct urb *urb)
switch (status) { switch (status) {
case 0: case 0:
/* success */ /* success */
break; return;
case -ECONNRESET: case -ECONNRESET:
case -ENOENT: case -ENOENT:
case -ESHUTDOWN: case -ESHUTDOWN:
/* this urb is terminated, clean up */ /* this urb is terminated, clean up */
dbg("%s - urb shutting down with status: %d", dbg("%s - urb shutting down with status: %d", __func__, status);
__func__, status);
return; return;
default: default:
dbg("%s - nonzero urb status received: %d", dbg("%s - nonzero urb status received: %d", __func__, status);
__func__, status);
goto exit; goto exit;
} }