diff options
| author | augustss <augustss@NetBSD.org> | 1999-01-07 22:12:08 +0000 |
|---|---|---|
| committer | augustss <augustss@NetBSD.org> | 1999-01-07 22:12:08 +0000 |
| commit | 012d8f3eabb36695cdd29a45dc2a8ab9fa025d48 (patch) | |
| tree | bdef42e4c46be4dfdc72996741f9e645214132cc /sys/dev | |
| parent | 86f2e214ed13bf967b66fa17d39827f193b99672 (diff) | |
Fix typo in FreeBSD part of the code.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/usb/usb_subr.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/usb/usb_subr.c b/sys/dev/usb/usb_subr.c index 70c678442fc..2c88315e105 100644 --- a/sys/dev/usb/usb_subr.c +++ b/sys/dev/usb/usb_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: usb_subr.c,v 1.25 1999/01/07 02:22:51 augustss Exp $ */ +/* $NetBSD: usb_subr.c,v 1.26 1999/01/07 22:12:08 augustss Exp $ */ /* * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -722,11 +722,9 @@ usbd_probe_and_attach(parent, dev, port, addr) usbd_interface_handle ifaces[256]; /* 256 is the absolute max */ #if defined(__FreeBSD__) -/* XXX isn't it bad to build &uaa into a value that has a lifetime - longer than this function call? */ bdevice bdev; bdev = device_add_child(*parent, NULL, -1, &uaa); - if (bdev) { + if (!bdev) { printf("%s: Device creation failed\n", USBDEVNAME(dev->bus->bdev)); return (USBD_INVAL); } |
