linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xpad: If the outgoing request was sent successfully don't try to send it again
@ 2009-06-30 22:56 Michael Gruber
  2009-07-13  4:06 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Gruber @ 2009-06-30 22:56 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-input

From: Michael Gruber <lists.mg@googlemail.com>

This avoids an infinite loop.

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

---

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:

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] xpad: If the outgoing request was sent successfully don't try to send it again
  2009-06-30 22:56 [PATCH] xpad: If the outgoing request was sent successfully don't try to send it again Michael Gruber
@ 2009-07-13  4:06 ` Dmitry Torokhov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2009-07-13  4:06 UTC (permalink / raw)
  To: Michael Gruber; +Cc: linux-input

On Wed, Jul 01, 2009 at 12:56:32AM +0200, Michael Gruber wrote:
> From: Michael Gruber <lists.mg@googlemail.com>
> 
> This avoids an infinite loop.
> 
> Signed-off-by: Michael Gruber <lists.mg@googlemail.com>
> 
> ---
> 
> Now my LED will finally stop blinking...

Applied, thank you Michael.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-13  4:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-30 22:56 [PATCH] xpad: If the outgoing request was sent successfully don't try to send it again Michael Gruber
2009-07-13  4:06 ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).