summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-01-07 15:14:00 +0100
committerTakashi Iwai <tiwai@suse.de>2013-01-12 08:44:04 +0100
commit50b1548775da7e80a3e1f1d9f0ddab1fd5d17fa3 (patch)
tree93e73c2fc7299d271fbe3a2a2e0ad678a8ae8333
parent0e614dd058ec8a426c16d2057fc814696c2381d9 (diff)
downloadlinux-50b1548775da7e80a3e1f1d9f0ddab1fd5d17fa3.tar.bz2
ALSA: hda - Remove unused dac reference in create_multi_out_ctls()
Remove useless code. Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/hda/hda_generic.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c
index 3f9439c39311..1fbc1b32359c 100644
--- a/sound/pci/hda/hda_generic.c
+++ b/sound/pci/hda/hda_generic.c
@@ -1428,12 +1428,8 @@ static int create_multi_out_ctls(struct hda_codec *codec,
for (i = 0; i < noutputs; i++) {
const char *name;
int index;
- hda_nid_t dac;
struct nid_path *path;
- dac = spec->multiout.dac_nids[i];
- if (!dac)
- continue;
if (i >= cfg->line_outs) {
index = 0;
name = channel_name[i];