summaryrefslogtreecommitdiffstats
path: root/sys/dev/mpt
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-12-23 02:36:43 +0000
committerpeter <peter@FreeBSD.org>2003-12-23 02:36:43 +0000
commit7cc77e03ae647ad532a0a4b708811e38ed15c9e4 (patch)
treed22ef24bdd562f18d9dfc77f257b3dd71335c80f /sys/dev/mpt
parent409dd19ac040f6465a4e73882c919f0dc679c18e (diff)
downloadFreeBSD-src-7cc77e03ae647ad532a0a4b708811e38ed15c9e4.zip
FreeBSD-src-7cc77e03ae647ad532a0a4b708811e38ed15c9e4.tar.gz
Catch a few places where NULL (pointer) was used where 0 (integer) was
expected.
Diffstat (limited to 'sys/dev/mpt')
-rw-r--r--sys/dev/mpt/mpt_pci.c2
1 files changed, 1 insertions, 1 deletions
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