From 012d8f3eabb36695cdd29a45dc2a8ab9fa025d48 Mon Sep 17 00:00:00 2001 From: augustss Date: Thu, 7 Jan 1999 22:12:08 +0000 Subject: [PATCH] Fix typo in FreeBSD part of the code. --- sys/dev/usb/usb_subr.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/dev/usb/usb_subr.c b/sys/dev/usb/usb_subr.c index 70c678442fcb..2c88315e1053 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); }