aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2003-12-23 02:36:43 +0000
committerPeter Wemm <peter@FreeBSD.org>2003-12-23 02:36:43 +0000
commita89ec05e3eddc4235386e1246b638b3d4d8815f5 (patch)
treed22ef24bdd562f18d9dfc77f257b3dd71335c80f /sys/dev
parent98ef6ed422a98c5a23f580fa08cf563a05f9a9fe (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/firewire/fwohci.c8
-rw-r--r--sys/dev/gfb/gfb_pci.c4
-rw-r--r--sys/dev/mpt/mpt_pci.c2
3 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/firewire/fwohci.c b/sys/dev/firewire/fwohci.c
index 63cbbecda5d56..ba54a7cd9755a 100644
--- a/sys/dev/firewire/fwohci.c
+++ b/sys/dev/firewire/fwohci.c
@@ -1314,7 +1314,7 @@ fwohci_tx_enable(struct fwohci_softc *sc, struct fwohci_dbch *dbch)
{
int err = 0;
int idb, z, i, dmach = 0, ldesc;
- u_int32_t off = NULL;
+ u_int32_t off = 0;
struct fwohcidb_tr *db_tr;
struct fwohcidb *db;
@@ -1329,7 +1329,7 @@ fwohci_tx_enable(struct fwohci_softc *sc, struct fwohci_dbch *dbch)
break;
}
}
- if(off == NULL){
+ if(off == 0){
err = EINVAL;
return err;
}
@@ -1373,7 +1373,7 @@ fwohci_rx_enable(struct fwohci_softc *sc, struct fwohci_dbch *dbch)
{
int err = 0;
int idb, z, i, dmach = 0, ldesc;
- u_int32_t off = NULL;
+ u_int32_t off = 0;
struct fwohcidb_tr *db_tr;
struct fwohcidb *db;
@@ -1390,7 +1390,7 @@ fwohci_rx_enable(struct fwohci_softc *sc, struct fwohci_dbch *dbch)
}
}
}
- if(off == NULL){
+ if(off == 0){
err = EINVAL;
return err;
}
diff --git a/sys/dev/gfb/gfb_pci.c b/sys/dev/gfb/gfb_pci.c
index 4527f0bd20742..d36e2d88d3085 100644
--- a/sys/dev/gfb/gfb_pci.c
+++ b/sys/dev/gfb/gfb_pci.c
@@ -136,9 +136,9 @@ pcigfb_attach(device_t dev)
adp->va_mem_base = (vm_offset_t)rman_get_virtual(sc->res);
adp->va_mem_size = rman_get_end(sc->res) -
rman_get_start(sc->res);
- adp->va_io_base = NULL;
+ adp->va_io_base = 0;
adp->va_io_size = 0;
- adp->va_crtc_addr = NULL;
+ adp->va_crtc_addr = 0;
gfb_device_softcs[sc->model][unit] = sc;
sc->gfbc = (struct gfb_conf *)malloc(sizeof(struct gfb_conf),
M_DEVBUF, M_NOWAIT);
diff --git a/sys/dev/mpt/mpt_pci.c b/sys/dev/mpt/mpt_pci.c
index afc06847f9367..f0b800349bdb9 100644
--- a/sys/dev/mpt/mpt_pci.c
+++ b/sys/dev/mpt/mpt_pci.c
@@ -474,7 +474,7 @@ mpt_dma_mem_alloc(mpt_softc_t *mpt)
device_t dev = mpt->dev;
/* Check if we alreay have allocated the reply memory */
- if (mpt->reply_phys != NULL) {
+ if (mpt->reply_phys != 0) {
return 0;
}