From: Takashi Iwai Date: Wed, 19 Jan 2011 16:27:58 +0000 (+0100) Subject: ALSA: hda - Fix "unused variable" compile warning X-Git-Tag: v2.6.38-rc2~10^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa1d0c5261f17d48636bf6d10bde0f38045511c0;p=profile%2Fivi%2Fkernel-x86-ivi.git ALSA: hda - Fix "unused variable" compile warning 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 --- diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 7874023..2b055e2 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -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)