Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70a6f2e6 authored by Michael Gruber's avatar Michael Gruber Committed by Dmitry Torokhov
Browse files

Input: xpad - don't resend successfully sent outgoing requests



This avoids an infinite loop.

Signed-off-by: default avatarMichael Gruber <lists.mg@googlemail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent e705cee4
Loading
Loading
Loading
Loading
+13 −13
Original line number Diff line number Diff line
@@ -472,17 +472,17 @@ static void xpad_irq_out(struct urb *urb)
	switch (status) {
	case 0:
		/* success */
		break;
		return;

	case -ECONNRESET:
	case -ENOENT:
	case -ESHUTDOWN:
		/* this urb is terminated, clean up */
			dbg("%s - urb shutting down with status: %d",
				__func__, status);
		dbg("%s - urb shutting down with status: %d", __func__, status);
		return;

	default:
			dbg("%s - nonzero urb status received: %d",
				__func__, status);
		dbg("%s - nonzero urb status received: %d", __func__, status);
		goto exit;
	}