patch-2.4.9 linux/arch/cris/drivers/usb-host.c
Next file: linux/arch/cris/drivers/usb-host.h
Previous file: linux/arch/arm/vmlinux-armv.lds.in
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Wed Aug 15 01:22:15 2001
- Orig file:
v2.4.8/linux/arch/cris/drivers/usb-host.c
- Orig date:
Wed Jul 25 17:10:17 2001
diff -u --recursive --new-file v2.4.8/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 (leni, min (sizeof (root_hub_dev_des), wLength));
+ len = min(unsigned int, leni, min(unsigned int, sizeof (root_hub_dev_des), wLength));
memcpy (data, root_hub_dev_des, len);
OK (len);
case (0x02): /* configuration descriptor */
- len = min (leni, min (sizeof (root_hub_config_des), wLength));
+ len = min(unsigned int, leni, min(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 (leni, len));
+ OK(min(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 (leni, min (sizeof (root_hub_hub_des), wLength));
+ len = min(unsigned int, leni, min(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)