summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_compat_linux.c
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2012-04-02 10:50:42 +0000
committerhselasky <hselasky@FreeBSD.org>2012-04-02 10:50:42 +0000
commit126953ccbe190fe51094d1ccefda3226d1e5140c (patch)
tree70a9d586e75b3d8e087069f07020564df44b0b99 /sys/dev/usb/usb_compat_linux.c
parent56216c3bc99342baf89a814301e85dffe7a62a9b (diff)
downloadFreeBSD-src-126953ccbe190fe51094d1ccefda3226d1e5140c.zip
FreeBSD-src-126953ccbe190fe51094d1ccefda3226d1e5140c.tar.gz
Fix compiler warnings, mostly signed issues,
when USB modules are compiled with WARNS=9. MFC after: 1 weeks
Diffstat (limited to 'sys/dev/usb/usb_compat_linux.c')
-rw-r--r--sys/dev/usb/usb_compat_linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_compat_linux.c b/sys/dev/usb/usb_compat_linux.c
index 2f78d9f..22bf1f4 100644
--- a/sys/dev/usb/usb_compat_linux.c
+++ b/sys/dev/usb/usb_compat_linux.c
@@ -880,7 +880,7 @@ usb_linux_create_usb_device(struct usb_device *udev, device_t dev)
*/
for (pass = 0; pass < 2; pass++) {
- iface_no_curr = 0 - 1;
+ iface_no_curr = 0xFFFF;
niface_total = 0;
iface_index = 0;
nedesc = 0;
OpenPOWER on IntegriCloud