diff options
author | hselasky <hselasky@FreeBSD.org> | 2012-04-02 10:50:42 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2012-04-02 10:50:42 +0000 |
commit | 126953ccbe190fe51094d1ccefda3226d1e5140c (patch) | |
tree | 70a9d586e75b3d8e087069f07020564df44b0b99 /sys/dev/usb/usb_device.c | |
parent | 56216c3bc99342baf89a814301e85dffe7a62a9b (diff) | |
download | FreeBSD-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_device.c')
-rw-r--r-- | sys/dev/usb/usb_device.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/usb/usb_device.c b/sys/dev/usb/usb_device.c index 726d7a7..1a7c1b6 100644 --- a/sys/dev/usb/usb_device.c +++ b/sys/dev/usb/usb_device.c @@ -1496,7 +1496,6 @@ usb_alloc_device(device_t parent_dev, struct usb_bus *bus, struct usb_device *adev; struct usb_device *hub; uint8_t *scratch_ptr; - size_t scratch_size; usb_error_t err; uint8_t device_index; uint8_t config_index; @@ -1721,7 +1720,6 @@ usb_alloc_device(device_t parent_dev, struct usb_bus *bus, * simply disable all USB strings. */ scratch_ptr = udev->bus->scratch[0].data; - scratch_size = sizeof(udev->bus->scratch[0].data); if (udev->ddesc.iManufacturer || udev->ddesc.iProduct || |