summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>2008-11-03 22:05:44 +0000
committern_hibma <n_hibma@FreeBSD.org>2008-11-03 22:05:44 +0000
commit93352848ac9b21d2128700ad0e89d7c4442428b5 (patch)
tree208951c8be83eb33a159b2c03c36c9825b209cc4
parent9df0eb1bf3abcd3baad30f9593ec04993fd8056d (diff)
downloadFreeBSD-src-93352848ac9b21d2128700ad0e89d7c4442428b5.zip
FreeBSD-src-93352848ac9b21d2128700ad0e89d7c4442428b5.tar.gz
uaa->ifaces contains pointers so set its entry to NULL not 0.
-rw-r--r--sys/dev/usb/usb_subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_subr.c b/sys/dev/usb/usb_subr.c
index 575b111..4d0b73b 100644
--- a/sys/dev/usb/usb_subr.c
+++ b/sys/dev/usb/usb_subr.c
@@ -930,7 +930,7 @@ usbd_probe_and_attach(device_t parent, usbd_device_handle dev,
usbd_devinfo(dev, 1, devinfo);
device_set_desc_copy(bdev, devinfo);
if (device_probe_and_attach(bdev) == 0) {
- ifaces[i] = 0; /* consumed */
+ ifaces[i] = NULL; /* consumed */
found++;
/* create another child for the next iface */
bdev = device_add_child(parent, NULL, -1);
OpenPOWER on IntegriCloud