diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-03-04 20:49:03 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-03-04 20:49:03 +0000 |
| commit | 78961701121e056ae23f1ae12263bf992f679f7f (patch) | |
| tree | 05bd60a1b59f8a6cfc08c9141f79bab4ef2ea912 /sys/dev/usb | |
| parent | 44fc52d2ac56fa54a5f00c546e9c36bfcb8c33c7 (diff) | |
Notes
Diffstat (limited to 'sys/dev/usb')
| -rw-r--r-- | sys/dev/usb/usbdi.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c index 989e4df3a8ef0..ece049d905d3f 100644 --- a/sys/dev/usb/usbdi.c +++ b/sys/dev/usb/usbdi.c @@ -1117,11 +1117,9 @@ usbd_get_endpoint_descriptor(usbd_interface_handle iface, u_int8_t address) int usbd_ratecheck(struct timeval *last) { -#if 0 - static struct timeval errinterval = { 0, 250000 }; /* 0.25 s*/ - - return (ratecheck(last, &errinterval)); -#endif + if (last->tv_sec == time_second) + return (0); + last->tv_sec = time_second; return (1); } |
