Skip to content

Commit 77451cb

Browse files
superm1dtor
authored andcommitted
Input: xpad - return errors from xpad_try_sending_next_out_packet() up
Not all errors that occur in xpad_try_sending_next_out_packet() are IO errors. Pass up the error code to the caller so that it can decide what to do. Signed-off-by: Mario Limonciello <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 35ecea2 commit 77451cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/joystick/xpad.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ static int xpad_try_sending_next_out_packet(struct usb_xpad *xpad)
13491349
"%s - usb_submit_urb failed with result %d\n",
13501350
__func__, error);
13511351
usb_unanchor_urb(xpad->irq_out);
1352-
return -EIO;
1352+
return error;
13531353
}
13541354

13551355
xpad->irq_out_active = true;

0 commit comments

Comments
 (0)