]> git.sur5r.net Git - u-boot/blobdiff - drivers/usb/gadget/ep0.c
reset: uniphier: sync reset data with Linux 4.18-rc1
[u-boot] / drivers / usb / gadget / ep0.c
index b3214882f76b5ad0c03f62a482fe7f7149661d91..a36d9ec03d89b9dcb743a2d8bceb1b5475487cfd 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2003
  * Gerry Hamel, geh@ti.com, Texas Instruments
@@ -15,8 +16,6 @@
  *     Stuart Lynne <sl@lineo.com>,
  *     Tom Rushworth <tbr@lineo.com>,
  *     Bruce Balden <balden@lineo.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 /*
@@ -315,7 +314,7 @@ static int ep0_get_descriptor (struct usb_device_instance *device,
                        /*copy_config(urb, &report_descriptor->bData[0], report_descriptor->wLength, max); */
                        if (max - urb->actual_length > 0) {
                                int length =
-                                       MIN (report_descriptor->wLength,
+                                       min(report_descriptor->wLength,
                                             max - urb->actual_length);
                                memcpy (urb->buffer + urb->actual_length,
                                        &report_descriptor->bData[0], length);