diff options
Diffstat (limited to 'drivers/ide/ide-cd.c')
-rw-r--r-- | drivers/ide/ide-cd.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 4b395e015e76..0f17117c5aa0 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c | |||
@@ -1302,13 +1302,6 @@ static ide_startstop_t cdrom_rw_intr(ide_drive_t *drive) | |||
1302 | while (sectors_to_transfer > 0) { | 1302 | while (sectors_to_transfer > 0) { |
1303 | int this_transfer; | 1303 | int this_transfer; |
1304 | 1304 | ||
1305 | /* | ||
1306 | * If we've filled the present buffer but there's another | ||
1307 | * chained buffer after it, move on. | ||
1308 | */ | ||
1309 | if (!write && rq->current_nr_sectors == 0 && rq->nr_sectors) | ||
1310 | cdrom_end_request(drive, 1); | ||
1311 | |||
1312 | if (!rq->current_nr_sectors) { | 1305 | if (!rq->current_nr_sectors) { |
1313 | if (!write) | 1306 | if (!write) |
1314 | /* | 1307 | /* |
@@ -1342,7 +1335,7 @@ static ide_startstop_t cdrom_rw_intr(ide_drive_t *drive) | |||
1342 | /* | 1335 | /* |
1343 | * current buffer complete, move on | 1336 | * current buffer complete, move on |
1344 | */ | 1337 | */ |
1345 | if (write && rq->current_nr_sectors == 0 && rq->nr_sectors) | 1338 | if (rq->current_nr_sectors == 0 && rq->nr_sectors) |
1346 | cdrom_end_request(drive, 1); | 1339 | cdrom_end_request(drive, 1); |
1347 | } | 1340 | } |
1348 | 1341 | ||