summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
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 63cbbec..ba54a7c 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 4527f0b..d36e2d8 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 afc0684..f0b8003 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;
}
OpenPOWER on IntegriCloud