aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/firewire
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/firewire
parent98ef6ed422a98c5a23f580fa08cf563a05f9a9fe (diff)
Notes
Diffstat (limited to 'sys/dev/firewire')
-rw-r--r--sys/dev/firewire/fwohci.c8
1 files changed, 4 insertions, 4 deletions
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;
}