summaryrefslogtreecommitdiff
path: root/drivers/ata/sata_promise.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-01-20 04:12:46 (GMT)
committerJeff Garzik <jeff@garzik.org>2007-02-09 22:39:34 (GMT)
commit0feb573f1588f3204a4558896c73703bc54d1862 (patch)
tree410a337991ac9a1b5ced8215a709f1e924090d6b /drivers/ata/sata_promise.c
parentdedf61db4f689b12c448b48426330290f98ed321 (diff)
downloadlinux-0feb573f1588f3204a4558896c73703bc54d1862.tar.xz
sata_promise: kill qc->nsect
Merge order left qc->nsect usage in sata_promise dangling. Kill it. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/sata_promise.c')
-rw-r--r--drivers/ata/sata_promise.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ata/sata_promise.c b/drivers/ata/sata_promise.c
index 551644a..32ae03e 100644
--- a/drivers/ata/sata_promise.c
+++ b/drivers/ata/sata_promise.c
@@ -502,8 +502,6 @@ static void pdc_atapi_pkt(struct ata_queued_cmd *qc)
feature = PDC_FEATURE_ATAPI_PIO;
/* set byte counter register to real transfer byte count */
nbytes = qc->nbytes;
- if (!nbytes)
- nbytes = qc->nsect << 9;
if (nbytes > 0xffff)
nbytes = 0xffff;
} else {