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)
This commit is contained in:
Marcel Moolenaar 2007-07-09 04:58:16 +00:00
parent 628e65ec53
commit acd760988d

View File

@ -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);