summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-08-05 14:04:39 +0200
committerTakashi Iwai <tiwai@suse.de>2022-08-05 15:06:36 +0200
commit666d3b612f91dab4a6616586dc99d2e43f07f52d (patch)
tree7037e929a5b9e667bd9b85ce2b49689c7a4cd08f /sound
parentALSA: hda/realtek: Add quirk for another Asus K42JZ model (diff)
downloadlinux-666d3b612f91dab4a6616586dc99d2e43f07f52d.tar.xz
linux-666d3b612f91dab4a6616586dc99d2e43f07f52d.zip
ALSA: ice1712: remove redundant assignment to new
The variable new is initialized with a value but it is never read. It is being re-assigned a new value in every case path in the following switch statement. The assignment is redundant and can be removed. Cleans up clang scan build warning: sound/pci/ice1712/quartet.c:569:8: warning: Although the value stored to 'new' is used in the enclosing expression, the value is never actually read from 'new' [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20220805120439.2341600-1-colin.i.king@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/ice1712/quartet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/ice1712/quartet.c b/sound/pci/ice1712/quartet.c
index 0dfa093f7dca..20b3e8f94719 100644
--- a/sound/pci/ice1712/quartet.c
+++ b/sound/pci/ice1712/quartet.c
@@ -566,7 +566,7 @@ static int qtet_ain12_sw_put(struct snd_kcontrol *kcontrol,
{
struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
unsigned int old, new, tmp, masked_old;
- old = new = get_scr(ice);
+ old = get_scr(ice);
masked_old = old & (SCR_AIN12_SEL1 | SCR_AIN12_SEL0);
tmp = ucontrol->value.integer.value[0];
if (tmp == 2)