diff options
Diffstat (limited to 'drivers/ide/ide-cd.c')
-rw-r--r-- | drivers/ide/ide-cd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 0a31cfda08a0..74af7e074868 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c | |||
@@ -431,7 +431,7 @@ void cdrom_analyze_sense_data(ide_drive_t *drive, | |||
431 | #if VERBOSE_IDE_CD_ERRORS | 431 | #if VERBOSE_IDE_CD_ERRORS |
432 | { | 432 | { |
433 | int i; | 433 | int i; |
434 | const char *s; | 434 | const char *s = "bad sense key!"; |
435 | char buf[80]; | 435 | char buf[80]; |
436 | 436 | ||
437 | printk ("ATAPI device %s:\n", drive->name); | 437 | printk ("ATAPI device %s:\n", drive->name); |
@@ -446,8 +446,6 @@ void cdrom_analyze_sense_data(ide_drive_t *drive, | |||
446 | 446 | ||
447 | if (sense->sense_key < ARY_LEN(sense_key_texts)) | 447 | if (sense->sense_key < ARY_LEN(sense_key_texts)) |
448 | s = sense_key_texts[sense->sense_key]; | 448 | s = sense_key_texts[sense->sense_key]; |
449 | else | ||
450 | s = "bad sense key!"; | ||
451 | 449 | ||
452 | printk("%s -- (Sense key=0x%02x)\n", s, sense->sense_key); | 450 | printk("%s -- (Sense key=0x%02x)\n", s, sense->sense_key); |
453 | 451 | ||