diff options
Diffstat (limited to 'drivers/ide/ide-atapi.c')
-rw-r--r-- | drivers/ide/ide-atapi.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c index 3df5442de710..b9dd4503cbc7 100644 --- a/drivers/ide/ide-atapi.c +++ b/drivers/ide/ide-atapi.c | |||
@@ -413,11 +413,7 @@ static ide_startstop_t ide_pc_intr(ide_drive_t *drive) | |||
413 | * ->pc_callback() might change rq->data_len for | 413 | * ->pc_callback() might change rq->data_len for |
414 | * residual count, cache total length. | 414 | * residual count, cache total length. |
415 | */ | 415 | */ |
416 | if (!blk_special_request(rq) && | 416 | done = blk_rq_bytes(rq); |
417 | (drive->media == ide_tape && !rq->bio)) | ||
418 | done = ide_rq_bytes(rq); /* FIXME */ | ||
419 | else | ||
420 | done = blk_rq_bytes(rq); | ||
421 | 417 | ||
422 | /* Command finished - Call the callback function */ | 418 | /* Command finished - Call the callback function */ |
423 | uptodate = drive->pc_callback(drive, dsc); | 419 | uptodate = drive->pc_callback(drive, dsc); |