diff options
author | Marcel Moolenaar <marcel@FreeBSD.org> | 2007-07-09 04:58:16 +0000 |
---|---|---|
committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2007-07-09 04:58:16 +0000 |
commit | acd760988db1eedb03a1bd3364dfc3612e984571 (patch) | |
tree | d463d8adc76756d8c49b72956081c3870b3c7590 /sys/ia64 | |
parent | 628e65ec53cb4ebb8bc954ba435e5f32ab5326f9 (diff) | |
download | src-acd760988db1eedb03a1bd3364dfc3612e984571.tar.gz src-acd760988db1eedb03a1bd3364dfc3612e984571.zip |
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)
Notes
Notes:
svn path=/head/; revision=171312
Diffstat (limited to 'sys/ia64')
-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 0943d83ccd53..0f4fddb8eef8 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); |