Correct a few more instances where NULL was used in an integral context.
This commit is contained in:
parent
0c336c7f37
commit
db957f1a5a
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vrc4172gpio.c,v 1.7 2003/09/26 15:29:22 simonb Exp $ */
|
||||
/* $NetBSD: vrc4172gpio.c,v 1.8 2003/10/23 20:25:40 he Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 2001 TAKEMRUA Shin. All rights reserved.
|
||||
*
|
||||
|
@ -29,7 +29,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vrc4172gpio.c,v 1.7 2003/09/26 15:29:22 simonb Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vrc4172gpio.c,v 1.8 2003/10/23 20:25:40 he Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -208,7 +208,7 @@ vrc4172gpio_attach(struct device *parent, struct device *self, void *aux)
|
|||
sc->sc_args = *args; /* structure copy */
|
||||
bus_space_map(sc->sc_iot, loc[HPCIOIFCF_ADDR], loc[HPCIOIFCF_SIZE],
|
||||
0 /* no cache */, &sc->sc_ioh);
|
||||
if (sc->sc_ioh == NULL) {
|
||||
if (sc->sc_ioh == 0) {
|
||||
printf("%s: can't map bus space\n", sc->sc_dev.dv_xname);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vrdsiu_mouse.c,v 1.4 2003/07/15 02:29:35 lukem Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vrdsiu_mouse.c,v 1.5 2003/10/23 20:25:40 he Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -139,7 +139,7 @@ vrdsiu_attach(parent, self, aux)
|
|||
|
||||
bus_space_tag_t iot = va->va_iot;
|
||||
|
||||
if (va->va_parent_ioh != NULL)
|
||||
if (va->va_parent_ioh != 0)
|
||||
res = bus_space_subregion(iot, va->va_parent_ioh, va->va_addr,
|
||||
va->va_size, &sc->sc_ioh);
|
||||
else
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vrkiu.c,v 1.34 2003/07/15 02:29:36 lukem Exp $ */
|
||||
/* $NetBSD: vrkiu.c,v 1.35 2003/10/23 20:25:40 he Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 SASAKI Takesi All rights reserved.
|
||||
|
@ -36,7 +36,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vrkiu.c,v 1.34 2003/07/15 02:29:36 lukem Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vrkiu.c,v 1.35 2003/10/23 20:25:40 he Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/tty.h>
|
||||
|
@ -144,7 +144,7 @@ vrkiuattach(struct device *parent, struct device *self, void *aux)
|
|||
bus_space_tag_t iot = va->va_iot;
|
||||
bus_space_handle_t ioh;
|
||||
|
||||
if (va->va_parent_ioh != NULL)
|
||||
if (va->va_parent_ioh != 0)
|
||||
res = bus_space_subregion(iot, va->va_parent_ioh, va->va_addr,
|
||||
va->va_size, &ioh);
|
||||
else
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vrpiu.c,v 1.29 2003/07/15 02:29:36 lukem Exp $ */
|
||||
/* $NetBSD: vrpiu.c,v 1.30 2003/10/23 20:25:40 he Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999-2003 TAKEMURA Shin All rights reserved.
|
||||
|
@ -33,7 +33,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vrpiu.c,v 1.29 2003/07/15 02:29:36 lukem Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vrpiu.c,v 1.30 2003/10/23 20:25:40 he Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -208,7 +208,7 @@ vrpiu_init(struct vrpiu_softc *sc, void *aux)
|
|||
bus_space_tag_t iot = va->va_iot;
|
||||
struct platid_data *p;
|
||||
|
||||
if (va->va_parent_ioh != NULL)
|
||||
if (va->va_parent_ioh != 0)
|
||||
res = bus_space_subregion(iot, va->va_parent_ioh, va->va_addr,
|
||||
va->va_size, &sc->sc_ioh);
|
||||
else
|
||||
|
@ -218,7 +218,7 @@ vrpiu_init(struct vrpiu_softc *sc, void *aux)
|
|||
printf(": can't map bus space\n");
|
||||
return;
|
||||
}
|
||||
if (va->va_parent_ioh != NULL)
|
||||
if (va->va_parent_ioh != 0)
|
||||
res = bus_space_subregion(iot, va->va_parent_ioh, va->va_addr2,
|
||||
va->va_size2, &sc->sc_buf_ioh);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue