diff options
Diffstat (limited to 'drivers/usb/gadget/dummy_hcd.c')
-rw-r--r-- | drivers/usb/gadget/dummy_hcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c index 3b42888b72f8..a56b24d305f8 100644 --- a/drivers/usb/gadget/dummy_hcd.c +++ b/drivers/usb/gadget/dummy_hcd.c | |||
@@ -1437,7 +1437,7 @@ restart: | |||
1437 | } | 1437 | } |
1438 | if (urb->transfer_buffer_length > 1) | 1438 | if (urb->transfer_buffer_length > 1) |
1439 | buf [1] = 0; | 1439 | buf [1] = 0; |
1440 | urb->actual_length = min (2, | 1440 | urb->actual_length = min_t(u32, 2, |
1441 | urb->transfer_buffer_length); | 1441 | urb->transfer_buffer_length); |
1442 | value = 0; | 1442 | value = 0; |
1443 | status = 0; | 1443 | status = 0; |