Skip to content

Commit

Permalink
ALSA: hda - don't compare with yourself in fill_input_pin_labels
Browse files Browse the repository at this point in the history
Just stumbled over this one while reading the code.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
David Henningsson authored and Takashi Iwai committed Jan 18, 2013
1 parent d3d982f commit 8e8db7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/hda_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -2558,7 +2558,7 @@ static int fill_input_pin_labels(struct hda_codec *codec)

label = hda_get_autocfg_input_label(codec, cfg, i);
idx = 0;
for (j = i; j >= 0; j--) {
for (j = i - 1; j >= 0; j--) {
if (spec->input_labels[j] &&
!strcmp(spec->input_labels[j], label)) {
idx = spec->input_label_idxs[j] + 1;
Expand Down

0 comments on commit 8e8db7f

Please sign in to comment.