ALSA: hda - Fix unused label skip_i915
authorTakashi Iwai <tiwai@suse.de>
Tue, 16 Jun 2015 10:23:36 +0000 (12:23 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 16 Jun 2015 10:25:41 +0000 (12:25 +0200)
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: bf06848bdbe5 ('ALSA: hda - Continue probing even if i915 binding fails')
Reported-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c

index a244ba706317379445f6b11a03ec118fc16eea05..b6db25b23dd316d0205d6a14fed365f5ae8cde4f 100644 (file)
@@ -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;