projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9291f4
)
ALSA: hda - silence uninitialized variable warning in activate_amp_in()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Fri, 13 Oct 2017 10:57:10 +0000
(13:57 +0300)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 13 Oct 2017 13:14:44 +0000
(15:14 +0200)
If snd_hda_get_conn_list() fails then "conn" isn't initialized.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c
patch
|
blob
|
history
diff --git
a/sound/pci/hda/hda_generic.c
b/sound/pci/hda/hda_generic.c
index 28e265a88383d3266b7fca8a4ae80dd2146dac0a..5cc65093d9417b6647639ebb05204d85b1f8f381 100644
(file)
--- a/
sound/pci/hda/hda_generic.c
+++ b/
sound/pci/hda/hda_generic.c
@@
-795,6
+795,8
@@
static void activate_amp_in(struct hda_codec *codec, struct nid_path *path,
hda_nid_t nid = path->path[i];
nums = snd_hda_get_conn_list(codec, nid, &conn);
+ if (nums < 0)
+ return;
type = get_wcaps_type(get_wcaps(codec, nid));
if (type == AC_WID_PIN ||
(type == AC_WID_AUD_IN && codec->single_adc_amp)) {