[PATCH] xpad: If the outgoing request was sent successfully don't try to send it again

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Michael Gruber <lists.mg@xxxxxxxxxxxxxx>

This avoids an infinite loop.

Signed-off-by: Michael Gruber <lists.mg@xxxxxxxxxxxxxx>

---

Now my LED will finally stop blinking...

 drivers/input/joystick/xpad.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c
index b868b8d..e5239ec 100644
--- a/drivers/input/joystick/xpad.c
+++ b/drivers/input/joystick/xpad.c
@@ -472,7 +472,7 @@ static void xpad_irq_out(struct urb *urb)
 	switch (status) {
 		case 0:
 		/* success */
-		break;
+		return;
 		case -ECONNRESET:
 		case -ENOENT:
 		case -ESHUTDOWN:
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux