mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
ALSA: hda - Remove locally dead codes
Reported by coverity. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
57d8ff617f
commit
ca16ec02e1
2 changed files with 1 additions and 4 deletions
|
@ -2634,8 +2634,7 @@ static int map_slaves(struct hda_codec *codec, const char * const *slaves,
|
||||||
items = codec->mixers.list;
|
items = codec->mixers.list;
|
||||||
for (i = 0; i < codec->mixers.used; i++) {
|
for (i = 0; i < codec->mixers.used; i++) {
|
||||||
struct snd_kcontrol *sctl = items[i].kctl;
|
struct snd_kcontrol *sctl = items[i].kctl;
|
||||||
if (!sctl || !sctl->id.name ||
|
if (!sctl || sctl->id.iface != SNDRV_CTL_ELEM_IFACE_MIXER)
|
||||||
sctl->id.iface != SNDRV_CTL_ELEM_IFACE_MIXER)
|
|
||||||
continue;
|
continue;
|
||||||
for (s = slaves; *s; s++) {
|
for (s = slaves; *s; s++) {
|
||||||
char tmpname[sizeof(sctl->id.name)];
|
char tmpname[sizeof(sctl->id.name)];
|
||||||
|
|
|
@ -554,8 +554,6 @@ static int alc_subsystem_id(struct hda_codec *codec,
|
||||||
nid = portd;
|
nid = portd;
|
||||||
else if (tmp == 3)
|
else if (tmp == 3)
|
||||||
nid = porti;
|
nid = porti;
|
||||||
else
|
|
||||||
return 1;
|
|
||||||
if (found_in_nid_list(nid, spec->gen.autocfg.line_out_pins,
|
if (found_in_nid_list(nid, spec->gen.autocfg.line_out_pins,
|
||||||
spec->gen.autocfg.line_outs))
|
spec->gen.autocfg.line_outs))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue