Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pcmcia Don't test truth of a pointer or assign 0 to ...
details: https://anonhg.NetBSD.org/src/rev/6bb28ef4101e
branches: trunk
changeset: 768370:6bb28ef4101e
user: dyoung <dyoung%NetBSD.org@localhost>
date: Mon Aug 15 18:04:59 2011 +0000
description:
Don't test truth of a pointer or assign 0 to it but compare / assign
NULL.
diffstat:
sys/dev/pcmcia/if_wi_pcmcia.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r 97ddebb88ea9 -r 6bb28ef4101e sys/dev/pcmcia/if_wi_pcmcia.c
--- a/sys/dev/pcmcia/if_wi_pcmcia.c Mon Aug 15 17:08:00 2011 +0000
+++ b/sys/dev/pcmcia/if_wi_pcmcia.c Mon Aug 15 18:04:59 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wi_pcmcia.c,v 1.88 2011/08/15 17:08:00 dyoung Exp $ */
+/* $NetBSD: if_wi_pcmcia.c,v 1.89 2011/08/15 18:04:59 dyoung Exp $ */
/*-
* Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wi_pcmcia.c,v 1.88 2011/08/15 17:08:00 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wi_pcmcia.c,v 1.89 2011/08/15 18:04:59 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -271,13 +271,13 @@
if (onoff) {
/* establish the interrupt. */
sc->sc_ih = pcmcia_intr_establish(pf, IPL_NET, wi_intr, sc);
- if (!sc->sc_ih)
+ if (sc->sc_ih == NULL)
return EIO;
error = pcmcia_function_enable(pf);
if (error) {
pcmcia_intr_disestablish(pf, sc->sc_ih);
- sc->sc_ih = 0;
+ sc->sc_ih = NULL;
return EIO;
}
Home |
Main Index |
Thread Index |
Old Index