libata: fix reporting of drained bytes when clearing DRQ
authorRobert Hancock <hancockrwd@gmail.com>
Wed, 9 Dec 2009 02:48:10 +0000 (20:48 -0600)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 17 Dec 2009 06:08:29 +0000 (01:08 -0500)
When we drain data from a device to clear DRQ during error recovery,
the number of bytes reported as drained is too low by a factor of 2
because the count is actually reporting the number of words drained,
not bytes. Fix this.

Signed-off-by: Robert Hancock <hancockrwd@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-sff.c

Simple merge