Commit 70d1d47c authored by Matt Mackall's avatar Matt Mackall Committed by Linus Torvalds

[PATCH] quiet ide-cd warning

This shuts up a potential uninitialized variable warning.
Signed-off-by: default avatarMatt Mackall <mpm@selenic.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 4645df10
......@@ -431,7 +431,7 @@ void cdrom_analyze_sense_data(ide_drive_t *drive,
#if VERBOSE_IDE_CD_ERRORS
{
int i;
const char *s;
const char *s = "bad sense key!";
char buf[80];
printk ("ATAPI device %s:\n", drive->name);
......@@ -446,8 +446,6 @@ void cdrom_analyze_sense_data(ide_drive_t *drive,
if (sense->sense_key < ARY_LEN(sense_key_texts))
s = sense_key_texts[sense->sense_key];
else
s = "bad sense key!";
printk("%s -- (Sense key=0x%02x)\n", s, sense->sense_key);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment