svn commit: r184604 - head/sys/dev/usb

Nick Hibma n_hibma at FreeBSD.org
Mon Nov 3 14:05:44 PST 2008


Author: n_hibma
Date: Mon Nov  3 22:05:44 2008
New Revision: 184604
URL: http://svn.freebsd.org/changeset/base/184604

Log:
  uaa->ifaces contains pointers so set its entry to NULL not 0.

Modified:
  head/sys/dev/usb/usb_subr.c

Modified: head/sys/dev/usb/usb_subr.c
==============================================================================
--- head/sys/dev/usb/usb_subr.c	Mon Nov  3 21:41:35 2008	(r184603)
+++ head/sys/dev/usb/usb_subr.c	Mon Nov  3 22:05:44 2008	(r184604)
@@ -930,7 +930,7 @@ usbd_probe_and_attach(device_t parent, u
 			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);


More information about the svn-src-head mailing list