diff options
-rw-r--r-- | drivers/ide/ide-cd.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 4a289711c551..19ccadead5e8 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c | |||
@@ -290,13 +290,6 @@ static void cdrom_end_request(ide_drive_t *drive, int uptodate) | |||
290 | ide_complete_rq(drive, uptodate ? 0 : -EIO, nsectors << 9); | 290 | ide_complete_rq(drive, uptodate ? 0 : -EIO, nsectors << 9); |
291 | } | 291 | } |
292 | 292 | ||
293 | static void ide_dump_status_no_sense(ide_drive_t *drive, const char *msg, u8 st) | ||
294 | { | ||
295 | if (st & 0x80) | ||
296 | return; | ||
297 | ide_dump_status(drive, msg, st); | ||
298 | } | ||
299 | |||
300 | /* | 293 | /* |
301 | * Returns: | 294 | * Returns: |
302 | * 0: if the request should be continued. | 295 | * 0: if the request should be continued. |
@@ -439,21 +432,19 @@ static int cdrom_decode_status(ide_drive_t *drive, int good_stat, int *stat_ret) | |||
439 | * No point in retrying after an illegal request or data | 432 | * No point in retrying after an illegal request or data |
440 | * protect error. | 433 | * protect error. |
441 | */ | 434 | */ |
442 | ide_dump_status_no_sense(drive, "command error", stat); | 435 | ide_dump_status(drive, "command error", stat); |
443 | do_end_request = 1; | 436 | do_end_request = 1; |
444 | } else if (sense_key == MEDIUM_ERROR) { | 437 | } else if (sense_key == MEDIUM_ERROR) { |
445 | /* | 438 | /* |
446 | * No point in re-trying a zillion times on a bad | 439 | * No point in re-trying a zillion times on a bad |
447 | * sector. If we got here the error is not correctable. | 440 | * sector. If we got here the error is not correctable. |
448 | */ | 441 | */ |
449 | ide_dump_status_no_sense(drive, | 442 | ide_dump_status(drive, "media error (bad sector)", |
450 | "media error (bad sector)", | 443 | stat); |
451 | stat); | ||
452 | do_end_request = 1; | 444 | do_end_request = 1; |
453 | } else if (sense_key == BLANK_CHECK) { | 445 | } else if (sense_key == BLANK_CHECK) { |
454 | /* disk appears blank ?? */ | 446 | /* disk appears blank ?? */ |
455 | ide_dump_status_no_sense(drive, "media error (blank)", | 447 | ide_dump_status(drive, "media error (blank)", stat); |
456 | stat); | ||
457 | do_end_request = 1; | 448 | do_end_request = 1; |
458 | } else if ((err & ~ATA_ABORTED) != 0) { | 449 | } else if ((err & ~ATA_ABORTED) != 0) { |
459 | /* go to the default handler for other errors */ | 450 | /* go to the default handler for other errors */ |