From: Jeff Garzik Date: Wed, 22 Mar 2006 02:31:22 +0000 (-0500) Subject: [libata] fix oops on non-DMA bmdma hardware X-Git-Tag: v2.6.17-rc1~1133 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d4681f6b994baf93dff0e4f59ab4fe38b49ef13;p=pandora-kernel.git [libata] fix oops on non-DMA bmdma hardware Alan noted: "bmdma may be zero but the bmdma_irq_clear function gets called even in this case during pure PIO operation. Check we have a bmdma before we use it." I fixed this by adding a check for zero. While was I there, I fixed the non-standard indentation of the small function's code. Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed