From: Tejun Heo Date: Sat, 20 Jan 2007 04:12:46 +0000 (+0900) Subject: sata_promise: kill qc->nsect X-Git-Tag: v2.6.21-rc1~274^2~513 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0feb573f1588f3204a4558896c73703bc54d1862;p=linux-2.6 sata_promise: kill qc->nsect Merge order left qc->nsect usage in sata_promise dangling. Kill it. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/sata_promise.c b/drivers/ata/sata_promise.c index 551644a948..32ae03e908 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 {