diff options
| author | fvdl <fvdl@NetBSD.org> | 2003-10-21 00:57:47 +0000 |
|---|---|---|
| committer | fvdl <fvdl@NetBSD.org> | 2003-10-21 00:57:47 +0000 |
| commit | 5f1e7fa5f819f773add30515b97a9993c1933276 (patch) | |
| tree | 93af484fe22b518fd35a887fc4d7d17ed808d04e /sys/dev | |
| parent | bada5458de4bb4bf748a13d37408de9dff927797 (diff) | |
Correct NULL abuse.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/adwlib.c | 6 | ||||
| -rw-r--r-- | sys/dev/ic/adwmcode.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/ic/adwlib.c b/sys/dev/ic/adwlib.c index c19a3b9e835..0c938050e0e 100644 --- a/sys/dev/ic/adwlib.c +++ b/sys/dev/ic/adwlib.c @@ -1,4 +1,4 @@ -/* $NetBSD: adwlib.c,v 1.25 2003/02/21 17:14:06 tsutsui Exp $ */ +/* $NetBSD: adwlib.c,v 1.26 2003/10/21 00:57:47 fvdl Exp $ */ /* * Low level routines for the Advanced Systems Inc. SCSI controllers chips @@ -52,7 +52,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: adwlib.c,v 1.25 2003/02/21 17:14:06 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: adwlib.c,v 1.26 2003/10/21 00:57:47 fvdl Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -2098,7 +2098,7 @@ ADW_SOFTC *sc; free_carrp = sc->irq_sp; sc->irq_sp = ADW_CARRIER_VADDR(sc, ASC_GET_CARRP(irq_next_pa)); - free_carrp->next_ba = (sc->carr_freelist == NULL)? NULL + free_carrp->next_ba = (sc->carr_freelist == NULL) ? 0 : sc->carr_freelist->carr_ba; sc->carr_freelist = free_carrp; sc->carr_pending_cnt--; diff --git a/sys/dev/ic/adwmcode.c b/sys/dev/ic/adwmcode.c index 57bce55c46b..cecf92b1996 100644 --- a/sys/dev/ic/adwmcode.c +++ b/sys/dev/ic/adwmcode.c @@ -1,4 +1,4 @@ -/* $NetBSD: adwmcode.c,v 1.10 2001/11/15 09:48:04 lukem Exp $ */ +/* $NetBSD: adwmcode.c,v 1.11 2003/10/21 00:57:47 fvdl Exp $ */ /* * Generic driver definitions and exported functions for the Advanced @@ -54,7 +54,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: adwmcode.c,v 1.10 2001/11/15 09:48:04 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: adwmcode.c,v 1.11 2003/10/21 00:57:47 fvdl Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -84,7 +84,7 @@ AdwInitCarriers(carr_dmap, carriers) ADW_CARRIER *carriers; { ADW_CARRIER *carr; - u_int32_t carr_next = NULL; + u_int32_t carr_next = 0; int i; memset(carriers, 0, sizeof(ADW_CARRIER) * ADW_MAX_CARRIER); |
