pata_ali: use atapi_cmd_type() to determine cmd type instead of transfer size
authorTejun Heo <htejun@gmail.com>
Tue, 11 Mar 2008 02:35:00 +0000 (11:35 +0900)
committerJeff Garzik <jeff@garzik.org>
Mon, 17 Mar 2008 12:26:52 +0000 (08:26 -0400)
pata_ali was using qc->nbytes to determine whether a command is
data transfer type or not.  As now qc->nbytes can be extended by
padding and draining buffers, these tests are not useful anymore.

Use atapi_cmd_type() instead.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

No differences found