mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
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>
This commit is contained in:
parent
4c88b7f287
commit
9cd5ab9c3c
1 changed files with 1 additions and 1 deletions
|
|
@ -463,7 +463,7 @@ static int lola_parse_tree(struct lola *chip)
|
|||
|
||||
err = lola_read_param(chip, 1, LOLA_PAR_FUNCTION_TYPE, &val);
|
||||
if (err < 0) {
|
||||
printk(KERN_ERR SFX "Can't read FUNCTION_TYPE for 0x%x\n", nid);
|
||||
printk(KERN_ERR SFX "Can't read FUNCTION_TYPE\n");
|
||||
return err;
|
||||
}
|
||||
if (val != 1) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue