diff options
author | marcel <marcel@FreeBSD.org> | 2007-07-09 04:58:16 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2007-07-09 04:58:16 +0000 |
commit | 15e9a30c60ae85ca82201c18d9d862b264a797f9 (patch) | |
tree | d463d8adc76756d8c49b72956081c3870b3c7590 | |
parent | 16cef586fbcd3a7ce28dd59fbfda50b4e41c77c3 (diff) | |
download | FreeBSD-src-15e9a30c60ae85ca82201c18d9d862b264a797f9.zip FreeBSD-src-15e9a30c60ae85ca82201c18d9d862b264a797f9.tar.gz |
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)
-rw-r--r-- | sys/ia64/isa/isa_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |