From 50b1548775da7e80a3e1f1d9f0ddab1fd5d17fa3 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 7 Jan 2013 15:14:00 +0100 Subject: [PATCH] ALSA: hda - Remove unused dac reference in create_multi_out_ctls() Remove useless code. Signed-off-by: Takashi Iwai --- sound/pci/hda/hda_generic.c | 4 ---- 1 file changed, 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]; -- 2.39.5