diff options
author | Hariprasad Kelam <hariprasad.kelam@gmail.com> | 2019-07-11 13:17:26 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-07-15 02:54:09 -0400 |
commit | b7cad26d150b05955b5e35b30a82c3eb66761cdc (patch) | |
tree | 7b023963b851164221994caf0873aefb85acc221 | |
parent | 5e19cad550a0b01b778fbfde23e036c9759c4f53 (diff) |
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: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/emu10k1/emu10k1x.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/emu10k1/emu10k1x.c b/sound/pci/emu10k1/emu10k1x.c index 67d6473ab0cd..9cf81832259c 100644 --- a/sound/pci/emu10k1/emu10k1x.c +++ b/sound/pci/emu10k1/emu10k1x.c | |||
@@ -1074,7 +1074,6 @@ static int snd_emu10k1x_shared_spdif_put(struct snd_kcontrol *kcontrol, | |||
1074 | { | 1074 | { |
1075 | struct emu10k1x *emu = snd_kcontrol_chip(kcontrol); | 1075 | struct emu10k1x *emu = snd_kcontrol_chip(kcontrol); |
1076 | unsigned int val; | 1076 | unsigned int val; |
1077 | int change = 0; | ||
1078 | 1077 | ||
1079 | val = ucontrol->value.integer.value[0] ; | 1078 | val = ucontrol->value.integer.value[0] ; |
1080 | 1079 | ||
@@ -1089,7 +1088,7 @@ static int snd_emu10k1x_shared_spdif_put(struct snd_kcontrol *kcontrol, | |||
1089 | snd_emu10k1x_ptr_write(emu, ROUTING, 0, 0x1003F); | 1088 | snd_emu10k1x_ptr_write(emu, ROUTING, 0, 0x1003F); |
1090 | snd_emu10k1x_gpio_write(emu, 0x1080); | 1089 | snd_emu10k1x_gpio_write(emu, 0x1080); |
1091 | } | 1090 | } |
1092 | return change; | 1091 | return 0; |
1093 | } | 1092 | } |
1094 | 1093 | ||
1095 | static const struct snd_kcontrol_new snd_emu10k1x_shared_spdif = | 1094 | static const struct snd_kcontrol_new snd_emu10k1x_shared_spdif = |