diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-10-29 11:51:36 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-10-29 11:51:36 -0400 |
commit | 9cd5ab9c3c32767e5c5e76bed9b0e2b84512f936 (patch) | |
tree | 853a1f42a61b71225953410358b4c863fccb82d6 /sound/pci/lola/lola.c | |
parent | 4c88b7f287e329698727049641ecdf50c8c66af5 (diff) |
ALSA: lola: Fix uninitialized variable access in error message
The FUNCTION_TYPE parameter isn't associated with any NID, thus
showing the uninitialized nid in the error message is simply
nonsense.
Spotted by coverity CID 145068.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/lola/lola.c')
-rw-r--r-- | sound/pci/lola/lola.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/lola/lola.c b/sound/pci/lola/lola.c index 7307d97186cb..0568540dc8d3 100644 --- a/sound/pci/lola/lola.c +++ b/sound/pci/lola/lola.c | |||
@@ -463,7 +463,7 @@ static int lola_parse_tree(struct lola *chip) | |||
463 | 463 | ||
464 | err = lola_read_param(chip, 1, LOLA_PAR_FUNCTION_TYPE, &val); | 464 | err = lola_read_param(chip, 1, LOLA_PAR_FUNCTION_TYPE, &val); |
465 | if (err < 0) { | 465 | if (err < 0) { |
466 | printk(KERN_ERR SFX "Can't read FUNCTION_TYPE for 0x%x\n", nid); | 466 | printk(KERN_ERR SFX "Can't read FUNCTION_TYPE\n"); |
467 | return err; | 467 | return err; |
468 | } | 468 | } |
469 | if (val != 1) { | 469 | if (val != 1) { |