diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-10-28 07:00:35 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-10-29 06:37:30 -0400 |
commit | ca16ec02e1887cc88e9eb3504ee8ea6d8112d05d (patch) | |
tree | e643cfb6aa31c46e2839b60a2c08f51133a37ee6 /sound/pci/hda/hda_codec.c | |
parent | 57d8ff617f871eee11bb2f648505592c2e859d0f (diff) |
ALSA: hda - Remove locally dead codes
Reported by coverity.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 0faab3b4dabb..de1a7670ba0d 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
@@ -2634,8 +2634,7 @@ static int map_slaves(struct hda_codec *codec, const char * const *slaves, | |||
2634 | items = codec->mixers.list; | 2634 | items = codec->mixers.list; |
2635 | for (i = 0; i < codec->mixers.used; i++) { | 2635 | for (i = 0; i < codec->mixers.used; i++) { |
2636 | struct snd_kcontrol *sctl = items[i].kctl; | 2636 | struct snd_kcontrol *sctl = items[i].kctl; |
2637 | if (!sctl || !sctl->id.name || | 2637 | if (!sctl || sctl->id.iface != SNDRV_CTL_ELEM_IFACE_MIXER) |
2638 | sctl->id.iface != SNDRV_CTL_ELEM_IFACE_MIXER) | ||
2639 | continue; | 2638 | continue; |
2640 | for (s = slaves; *s; s++) { | 2639 | for (s = slaves; *s; s++) { |
2641 | char tmpname[sizeof(sctl->id.name)]; | 2640 | char tmpname[sizeof(sctl->id.name)]; |