From fb4df6a4dee4fbfafdcd69ce189bd38752a1d610 Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 25 Dec 2003 01:23:38 +0000 Subject: NULL fallout --- sys/dev/hifn/hifn7751.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev/hifn') diff --git a/sys/dev/hifn/hifn7751.c b/sys/dev/hifn/hifn7751.c index 9519cd2..8c5bec5 100644 --- a/sys/dev/hifn/hifn7751.c +++ b/sys/dev/hifn/hifn7751.c @@ -386,10 +386,10 @@ hifn_attach(device_t dev) sc->sc_dma = (struct hifn_dma *)kva; bzero(sc->sc_dma, sizeof(*sc->sc_dma)); - KASSERT(sc->sc_st0 != NULL, ("hifn_attach: null bar0 tag!")); - KASSERT(sc->sc_sh0 != NULL, ("hifn_attach: null bar0 handle!")); - KASSERT(sc->sc_st1 != NULL, ("hifn_attach: null bar1 tag!")); - KASSERT(sc->sc_sh1 != NULL, ("hifn_attach: null bar1 handle!")); + KASSERT(sc->sc_st0 != 0, ("hifn_attach: null bar0 tag!")); + KASSERT(sc->sc_sh0 != 0, ("hifn_attach: null bar0 handle!")); + KASSERT(sc->sc_st1 != 0, ("hifn_attach: null bar1 tag!")); + KASSERT(sc->sc_sh1 != 0, ("hifn_attach: null bar1 handle!")); /* * Reset the board and do the ``secret handshake'' -- cgit v1.1