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) | |
download | src-264bb28fd4e536ad599f4219632608a81dbb9dc7.tar.gz src-264bb28fd4e536ad599f4219632608a81dbb9dc7.zip |
MFNetBSD:
revision 1.81
date: 2001/04/17 00:05:33; author: augustss; state: Exp; lines: +7 -1
Add a DIAGNOSTIC.
Notes
Notes:
svn path=/head/; revision=94060
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); } |