From: Takashi Iwai Date: Mon, 7 Jan 2013 14:14:00 +0000 (+0100) Subject: ALSA: hda - Remove unused dac reference in create_multi_out_ctls() X-Git-Tag: v3.9-rc1~52^2~77^2~86 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=50b1548775da7e80a3e1f1d9f0ddab1fd5d17fa3;p=platform%2Fkernel%2Flinux-stable.git ALSA: hda - Remove unused dac reference in create_multi_out_ctls() Remove useless code. Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c index 3f9439c..1fbc1b3 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];