commit | 4a38e733a75d52e84772fc00d88e32032a235e75 | [log] [tgz] |
---|---|---|
author | Tejun Heo <htejun@gmail.com> | Tue Mar 11 11:35:00 2008 +0900 |
committer | Jeff Garzik <jeff@garzik.org> | Mon Mar 17 08:26:52 2008 -0400 |
tree | c38fa6f0ce85adbbaf705e72d7bd96b958508b96 | |
parent | a22e64443f0aa4aa4e3c56a49e5c060e90752c07 [diff] |
pata_ali: use atapi_cmd_type() to determine cmd type instead of transfer size 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>