patch-2.4.10 linux/arch/cris/drivers/usb-host.c
Next file: linux/arch/cris/kernel/process.c
Previous file: linux/arch/cris/drivers/parport.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Mon Sep 10 09:04:53 2001
- Orig file:
v2.4.9/linux/arch/cris/drivers/usb-host.c
- Orig date:
Mon Aug 27 12:41:39 2001
diff -u --recursive --new-file v2.4.9/linux/arch/cris/drivers/usb-host.c linux/arch/cris/drivers/usb-host.c
@@ -2258,11 +2258,11 @@
case RH_GET_DESCRIPTOR:
switch ((wValue & 0xff00) >> 8) {
case (0x01): /* device descriptor */
- len = min(unsigned int, leni, min(unsigned int, sizeof (root_hub_dev_des), wLength));
+ len = min_t(unsigned int, leni, min_t(unsigned int, sizeof (root_hub_dev_des), wLength));
memcpy (data, root_hub_dev_des, len);
OK (len);
case (0x02): /* configuration descriptor */
- len = min(unsigned int, leni, min(unsigned int, sizeof (root_hub_config_des), wLength));
+ len = min_t(unsigned int, leni, min_t(unsigned int, sizeof (root_hub_config_des), wLength));
memcpy (data, root_hub_config_des, len);
OK (len);
case (0x03): /* string descriptors */
@@ -2270,7 +2270,7 @@
0xff, "ETRAX 100LX",
data, wLength);
if (len > 0) {
- OK(min(int, leni, len));
+ OK(min_t(int, leni, len));
} else
stat = -EPIPE;
}
@@ -2278,7 +2278,7 @@
case RH_GET_DESCRIPTOR | RH_CLASS:
root_hub_hub_des[2] = hc->rh.numports;
- len = min(unsigned int, leni, min(unsigned int, sizeof (root_hub_hub_des), wLength));
+ len = min_t(unsigned int, leni, min_t(unsigned int, sizeof (root_hub_hub_des), wLength));
memcpy (data, root_hub_hub_des, len);
OK (len);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)