From a89ec05e3eddc4235386e1246b638b3d4d8815f5 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Tue, 23 Dec 2003 02:36:43 +0000 Subject: Catch a few places where NULL (pointer) was used where 0 (integer) was expected. --- sys/dev/firewire/fwohci.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev/firewire') diff --git a/sys/dev/firewire/fwohci.c b/sys/dev/firewire/fwohci.c index 63cbbecda5d5..ba54a7cd9755 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; } -- cgit v1.3