1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

MFNetBSD:

revision 1.52
    date: 2001/10/26 17:53:59;  author: augustss;  state: Exp;  lines: +8 -2
    Compare pointer with NULL instead of using them as a condition.
This commit is contained in:
Josef Karthauser 2002-04-07 10:31:39 +00:00
parent 60fb1d5b78
commit 93eb6f1095
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94058

View File

@ -1,4 +1,4 @@
/* $NetBSD: uhub.c,v 1.51 2001/10/24 15:30:17 augustss Exp $ */
/* $NetBSD: uhub.c,v 1.52 2001/10/26 17:53:59 augustss Exp $ */
/* $FreeBSD$ */
/*
@ -388,8 +388,14 @@ uhub_explore(usbd_device_handle dev)
DPRINTFN(3,("uhub_explore: port=%d !C_CONNECT_"
"STATUS\n", port));
/* No status change, just do recursive explore. */
if (up->device && up->device->hub)
if (up->device != NULL && up->device->hub != NULL)
up->device->hub->explore(up->device);
#if 0 && defined(DIAGNOSTIC)
if (up->device == NULL &&
(status & UPS_CURRENT_CONNECT_STATUS))
printf("%s: connected, no device\n",
USBDEVNAME(sc->sc_dev));
#endif
continue;
}