Skip to content

Commit

Permalink
[PATCH] quiet ide-cd warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matt Mackall authored and Linus Torvalds committed Jul 12, 2005
1 parent 4645df1 commit 70d1d47
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);

Expand Down

0 comments on commit 70d1d47

Please sign in to comment.