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:
parent
628e65ec53
commit
acd760988d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user