ALSA: hda - Fix "unused variable" compile warning
authorTakashi Iwai <tiwai@suse.de>
Wed, 19 Jan 2011 16:27:58 +0000 (17:27 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 19 Jan 2011 16:27:58 +0000 (17:27 +0100)
  sound/pci/hda/patch_realtek.c: In function ‘alc_apply_fixup’:
  sound/pci/hda/patch_realtek.c:1724:14: warning: unused variable ‘modelname’

snd_printdd() is evaluated only when CONFIG_SND_DEBUG_VERBOSE=y.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c

index 7874023db0f3c2c7e3879bb10543dda8d4b90bcf..2b055e2780bb1756177d68da05d4f6800e373165 100644 (file)
@@ -1721,7 +1721,9 @@ static void alc_apply_fixup(struct hda_codec *codec, int action)
 {
        struct alc_spec *spec = codec->spec;
        int id = spec->fixup_id;
+#ifdef CONFIG_SND_DEBUG_VERBOSE
        const char *modelname = spec->fixup_name;
+#endif
        int depth = 0;
 
        if (!spec->fixup_list)