Skip to content

Commit

Permalink
Input: xpad - don't resend successfully sent outgoing requests
Browse files Browse the repository at this point in the history
This avoids an infinite loop.

Signed-off-by: Michael Gruber <lists.mg@googlemail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Michael Gruber authored and Dmitry Torokhov committed Jul 13, 2009
1 parent e705cee commit 70a6f2e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions drivers/input/joystick/xpad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 70a6f2e

Please sign in to comment.