diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c index 8cc1a88d21e7be0ac0941c8b5d383a81eaae5b96..e1cd56c5e2a86b6ce58ff485dc19b5d80593464f 100644 --- a/drivers/usb/gadget/dummy_hcd.c +++ b/drivers/usb/gadget/dummy_hcd.c @@ -1352,7 +1352,7 @@ static int transfer(struct dummy_hcd *dum_hcd, struct urb *urb, 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;