Commit 0feb573f authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik

sata_promise: kill qc->nsect

Merge order left qc->nsect usage in sata_promise dangling.  Kill it.
Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent dedf61db
...@@ -502,8 +502,6 @@ static void pdc_atapi_pkt(struct ata_queued_cmd *qc) ...@@ -502,8 +502,6 @@ static void pdc_atapi_pkt(struct ata_queued_cmd *qc)
feature = PDC_FEATURE_ATAPI_PIO; feature = PDC_FEATURE_ATAPI_PIO;
/* set byte counter register to real transfer byte count */ /* set byte counter register to real transfer byte count */
nbytes = qc->nbytes; nbytes = qc->nbytes;
if (!nbytes)
nbytes = qc->nsect << 9;
if (nbytes > 0xffff) if (nbytes > 0xffff)
nbytes = 0xffff; nbytes = 0xffff;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment