Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb KNF: compare a pointer with NULL instead of eval...
details: https://anonhg.NetBSD.org/src/rev/dd5bd8a4771c
branches: trunk
changeset: 747161:dd5bd8a4771c
user: dyoung <dyoung%NetBSD.org@localhost>
date: Fri Sep 04 16:42:38 2009 +0000
description:
KNF: compare a pointer with NULL instead of evaluating its "truth."
diffstat:
sys/dev/usb/uhub.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a7e62ca48d5b -r dd5bd8a4771c sys/dev/usb/uhub.c
--- a/sys/dev/usb/uhub.c Fri Sep 04 16:42:19 2009 +0000
+++ b/sys/dev/usb/uhub.c Fri Sep 04 16:42:38 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uhub.c,v 1.105 2009/09/03 20:54:03 dyoung Exp $ */
+/* $NetBSD: uhub.c,v 1.106 2009/09/04 16:42:38 dyoung Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhub.c,v 1.18 1999/11/17 22:33:43 n_hibma Exp $ */
/*
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhub.c,v 1.105 2009/09/03 20:54:03 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhub.c,v 1.106 2009/09/04 16:42:38 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -606,7 +606,7 @@
nports = hub->hubdesc.bNbrPorts;
for(port = 0; port < nports; port++) {
rup = &hub->ports[port];
- if (rup->device)
+ if (rup->device != NULL)
usb_disconnect_port(rup, self);
}
Home |
Main Index |
Thread Index |
Old Index