Skip to contentSkip to conversation

sata_promise: kill qc->nsect

PATCH New Tejun Heo 1 participant 1 message Jan 20, 2007

Subsystems (2)
lore
Share & tools
lore

Tejun Heo

author
#0 lore raw

PATCH 1/1 sata_promise: kill qc->nsect

Merge order left qc->nsect usage in sata_promise dangling. Kill it.

drivers/ata/sata_promise.c +0 -2
index 551644a..32ae03e 100644
@@ -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 {