]> git.baikalelectronics.ru Git - kernel.git/commit
libata: don't check whether to use DMA or not for no data commands
authorTejun Heo <tj@kernel.org>
Tue, 17 Jun 2008 03:36:26 +0000 (12:36 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 19 Jun 2008 00:27:49 +0000 (20:27 -0400)
commitcb2740ca361815a55dc678c0500870ebb5307a60
tree264ed72edfef60f11260f3227523334b1e1aca80
parent56681e97a0cd4364a92c4f2f88dce767ea03ff90
libata: don't check whether to use DMA or not for no data commands

There's no reason to check whether to use DMA or not for no data
commands.  Don't do it.  While at it, make local variable using_pio in
atapi_xlat() set iff ATAPI_PROT_PIO is going to be used and rename
ata_check_atapi_dma() to atapi_check_dma() for consistency.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-core.c
drivers/ata/libata-scsi.c
drivers/ata/libata.h