Skip to content

Commit

Permalink
ALSA: hda - Fix unused label skip_i915
Browse files Browse the repository at this point in the history
When CONFIG_SND_HDA_I915=n, we get a compile warning:
  sound/pci/hda/hda_intel.c: In function ‘azx_probe_continue’:
  sound/pci/hda/hda_intel.c:1882:2: warning: label ‘skip_i915’ defined but not used [-Wunused-label]

Fix it by putting again ifdef to it.  Sigh.

Fixes: bf06848 ('ALSA: hda - Continue probing even if i915 binding fails')
Reported-by: Borislav Petkov <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Jun 16, 2015
1 parent 82d6d8a commit 145c0e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/pci/hda/hda_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1879,7 +1879,9 @@ static int azx_probe_continue(struct azx *chip)
#endif
}

#ifdef CONFIG_SND_HDA_I915
skip_i915:
#endif
err = azx_first_init(chip);
if (err < 0)
goto out_free;
Expand Down

0 comments on commit 145c0e9

Please sign in to comment.