From 64d37e813d3218f63030d4dad80cb3f7d8fb58a8 Mon Sep 17 00:00:00 2001 From: Artem Mygaiev Date: Fri, 10 May 2024 02:12:32 -0700 Subject: [PATCH] Improve a bit status processing of URB Ignore non-errors, spit out message on error --- fl2000.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fl2000.h b/fl2000.h index 8b81cdd..0cdb160 100644 --- a/fl2000.h +++ b/fl2000.h @@ -101,7 +101,15 @@ static inline int fl2000_urb_status(struct usb_device *usb_dev, int status, int case -EPIPE: ret = usb_clear_halt(usb_dev, pipe); break; + case -ECONNRESET: + fallthrough; + case -ENOENT: + fallthrough; + case -ESHUTDOWN: + /* Not an error */ + break; default: + dev_err(&usb_dev->dev, "Nonzero urb status, %d\n", status); break; }