diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-01-19 17:27:58 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-01-19 17:27:58 +0100 |
commit | aa1d0c5261f17d48636bf6d10bde0f38045511c0 (patch) | |
tree | da20ca5ad6ee0388533201ef03fe4fbd42eac884 /sound | |
parent | 5734a07cbb8d4600a74a374c839620ddc62b2cf2 (diff) | |
download | linux-aa1d0c5261f17d48636bf6d10bde0f38045511c0.tar.bz2 |
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 <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 7874023db0f3..2b055e2780bb 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) |