diff options
author | Matt Mackall <mpm@selenic.com> | 2005-07-12 16:58:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-12 19:00:58 -0400 |
commit | 70d1d47c47c4643af357cb44d0d891c1b765f2ab (patch) | |
tree | 6386f119979ea7af51923f374d28a3c2dcf05414 /drivers/ide/ide-cd.c | |
parent | 4645df1035b34be2d431d6a10b08e1c06bcd3361 (diff) |
[PATCH] quiet ide-cd warning
This shuts up a potential uninitialized variable warning.
Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
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 | ||