Skip to content

Commit

Permalink
Improve a bit status processing of URB
Browse files Browse the repository at this point in the history
Ignore non-errors, spit out message on error
  • Loading branch information
klogg committed May 10, 2024
1 parent cbb4274 commit 287220d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fl2000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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(dev, "Nonzero urb status, %d\n", status);
break;
}

Expand Down

0 comments on commit 287220d

Please sign in to comment.