Date: Mon, 3 Nov 2008 22:05:44 +0000 (UTC) From: Nick Hibma <n_hibma@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r184604 - head/sys/dev/usb Message-ID: <200811032205.mA3M5irG077286@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811032205.mA3M5irG077286>