mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
ALSA: emu10k1: remove redundant variable attn
Variable attn is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'attn' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
45bf41005a
commit
de42b4b96e
@ -290,7 +290,7 @@ static void snd_emu10k1_pcm_init_voice(struct snd_emu10k1 *emu,
|
||||
struct snd_pcm_runtime *runtime = substream->runtime;
|
||||
unsigned int silent_page, tmp;
|
||||
int voice, stereo, w_16;
|
||||
unsigned char attn, send_amount[8];
|
||||
unsigned char send_amount[8];
|
||||
unsigned char send_routing[8];
|
||||
unsigned long flags;
|
||||
unsigned int pitch_target;
|
||||
@ -313,7 +313,6 @@ static void snd_emu10k1_pcm_init_voice(struct snd_emu10k1 *emu,
|
||||
|
||||
/* volume parameters */
|
||||
if (extra) {
|
||||
attn = 0;
|
||||
memset(send_routing, 0, sizeof(send_routing));
|
||||
send_routing[0] = 0;
|
||||
send_routing[1] = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user