From 15e9a30c60ae85ca82201c18d9d862b264a797f9 Mon Sep 17 00:00:00 2001 From: marcel Date: Mon, 9 Jul 2007 04:58:16 +0000 Subject: dma_tag is a static structure. Testing for it being a NULL pointer doesn't make sense. Rewrite to what was intended. Correctly warned about by: GCC Approved by: re (bmah) --- sys/ia64/isa/isa_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/ia64/isa/isa_dma.c b/sys/ia64/isa/isa_dma.c index 0943d83..0f4fddb8 100644 --- a/sys/ia64/isa/isa_dma.c +++ b/sys/ia64/isa/isa_dma.c @@ -331,7 +331,7 @@ isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan) printf("isa_dmastart: channel %d busy\n", chan); #endif - if (!dma_tag || !dma_map[chan]) + if (!dma_tag[chan] || !dma_map[chan]) panic("isa_dmastart: called without isa_dma_init"); dma_busy |= (1 << chan); -- cgit v1.1