diff options
| author | Josef Karthauser <joe@FreeBSD.org> | 2002-04-07 10:38:07 +0000 |
|---|---|---|
| committer | Josef Karthauser <joe@FreeBSD.org> | 2002-04-07 10:38:07 +0000 |
| commit | 264bb28fd4e536ad599f4219632608a81dbb9dc7 (patch) | |
| tree | 3550bd25c051f9f3136f36e51bb43fc22560baf3 /sys/dev/usb/usbdi.c | |
| parent | eaf587ef2ba88a24dec3e424997a167272c7e5e4 (diff) | |
Notes
Diffstat (limited to 'sys/dev/usb/usbdi.c')
| -rw-r--r-- | sys/dev/usb/usbdi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c index 9070ae51af57..49d675f21d3a 100644 --- a/sys/dev/usb/usbdi.c +++ b/sys/dev/usb/usbdi.c @@ -1010,6 +1010,12 @@ usbd_do_request_async(usbd_device_handle dev, usb_device_request_t *req, const struct usbd_quirks * usbd_get_quirks(usbd_device_handle dev) { +#ifdef DIAGNOSTIC + if (dev == NULL) { + printf("usbd_get_quirks: dev == NULL\n"); + return 0; + } +#endif return (dev->quirks); } |
