diff options
Diffstat (limited to 'drivers/ata/sata_promise.c')
-rw-r--r-- | drivers/ata/sata_promise.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ata/sata_promise.c b/drivers/ata/sata_promise.c index 551644a94861..32ae03e9081b 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) | |||
502 | feature = PDC_FEATURE_ATAPI_PIO; | 502 | feature = PDC_FEATURE_ATAPI_PIO; |
503 | /* set byte counter register to real transfer byte count */ | 503 | /* set byte counter register to real transfer byte count */ |
504 | nbytes = qc->nbytes; | 504 | nbytes = qc->nbytes; |
505 | if (!nbytes) | ||
506 | nbytes = qc->nsect << 9; | ||
507 | if (nbytes > 0xffff) | 505 | if (nbytes > 0xffff) |
508 | nbytes = 0xffff; | 506 | nbytes = 0xffff; |
509 | } else { | 507 | } else { |