ALSA: ac97: remove unused variable 'snd_ac97_controls_master_mono'
PATCH 1/1 ALSA: ac97: remove unused variable 'snd_ac97_controls_master_mono'
sound/pci/ac97/ac97_codec.c:599:38: warning:
snd_ac97_controls_master_mono defined but not used [-Wunused-const-variable=]
It is never used, so can be removed.
Reported-by Hulk Robot <[email protected]>
Signed-off-by YueHaibing <[email protected]>
--- sound/pci/ac97/ac97_codec.c | 5 ----- 1 file changed, 5 deletions(-)
sound/pci/ac97/ac97_codec.c +0 -5
@@ -596,11 +596,6 @@ static int snd_ac97_put_volsw(struct snd_kcontrol *kcontrol,return err; } -static const struct snd_kcontrol_new snd_ac97_controls_master_mono[2 ] = { -AC97_SINGLE ("Master Mono Playback Switch" ,AC97_MASTER_MONO ,15 ,1 ,1 ), -AC97_SINGLE ("Master Mono Playback Volume" ,AC97_MASTER_MONO ,0 ,31 ,1 ) -}; -static const struct snd_kcontrol_new snd_ac97_controls_tone[2 ] = {AC97_SINGLE ("Tone Control - Bass" ,AC97_MASTER_TONE ,8 ,15 ,1 ),AC97_SINGLE ("Tone Control - Treble" ,AC97_MASTER_TONE ,0 ,15 ,1 )
Signature · 1 line
2.7.4
Takashi Iwai
AppliedQuoted 8 lines · YueHaibing
sound/pci/ac97/ac97_codec.c:599:38: warning:
snd_ac97_controls_master_monodefined but not used [-Wunused-const-variable=]It is never used, so can be removed.
Reported-by Hulk Robot <[email protected]>Signed-off-by YueHaibing <[email protected]>
Applied, thanks.
Takashi