Commit b7cad26d authored by Hariprasad Kelam's avatar Hariprasad Kelam Committed by Takashi Iwai

ALSA: emu10k1: Remove unneeded variable "change"

fix below issue reported by coccicheck
sound/pci/emu10k1/emu10k1x.c:1077:5-11: Unneeded variable: "change".
Return "0" on line 1092
Signed-off-by: default avatarHariprasad Kelam <hariprasad.kelam@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 5e19cad5
...@@ -1074,7 +1074,6 @@ static int snd_emu10k1x_shared_spdif_put(struct snd_kcontrol *kcontrol, ...@@ -1074,7 +1074,6 @@ static int snd_emu10k1x_shared_spdif_put(struct snd_kcontrol *kcontrol,
{ {
struct emu10k1x *emu = snd_kcontrol_chip(kcontrol); struct emu10k1x *emu = snd_kcontrol_chip(kcontrol);
unsigned int val; unsigned int val;
int change = 0;
val = ucontrol->value.integer.value[0] ; val = ucontrol->value.integer.value[0] ;
...@@ -1089,7 +1088,7 @@ static int snd_emu10k1x_shared_spdif_put(struct snd_kcontrol *kcontrol, ...@@ -1089,7 +1088,7 @@ static int snd_emu10k1x_shared_spdif_put(struct snd_kcontrol *kcontrol,
snd_emu10k1x_ptr_write(emu, ROUTING, 0, 0x1003F); snd_emu10k1x_ptr_write(emu, ROUTING, 0, 0x1003F);
snd_emu10k1x_gpio_write(emu, 0x1080); snd_emu10k1x_gpio_write(emu, 0x1080);
} }
return change; return 0;
} }
static const struct snd_kcontrol_new snd_emu10k1x_shared_spdif = static const struct snd_kcontrol_new snd_emu10k1x_shared_spdif =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment