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:
parent
60fb1d5b78
commit
93eb6f1095
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94058
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user