diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c index 8cc1a88d21e7..e1cd56c5e2a8 100644 --- a/drivers/usb/gadget/dummy_hcd.c +++ b/drivers/usb/gadget/dummy_hcd.c @@ -1352,7 +1352,7 @@ top: len = dummy_perform_transfer(urb, req, len); ep->last_io = jiffies; - if (len < 0) { + if ((int)len < 0) { req->req.status = len; } else { limit -= len;