Skip to content

Commit

Permalink
ALSA: hda - Remove unused dac reference in create_multi_out_ctls()
Browse files Browse the repository at this point in the history
Remove useless code.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Jan 12, 2013
1 parent 0e614dd commit 50b1548
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sound/pci/hda/hda_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 50b1548

Please sign in to comment.