From: Colin Ian King Date: Thu, 4 Jul 2019 12:44:25 +0000 (+0100) Subject: ALSA: hda/ca0132 - remove redundant assignment to variable 'changed' X-Git-Tag: microblaze-v5.4-rc1~59^2~59 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=335399362a6edeec5a365ed0fbb0b6902cacc4e4;p=linux-2.6-microblaze.git ALSA: hda/ca0132 - remove redundant assignment to variable 'changed' The variable 'changed' is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index de61179c91e2..49adfc4ef5de 100644 --- a/sound/pci/hda/patch_ca0132.c +++ b/sound/pci/hda/patch_ca0132.c @@ -5993,7 +5993,7 @@ static int ca0132_alt_volume_put(struct snd_kcontrol *kcontrol, int ch = get_amp_channels(kcontrol); long *valp = ucontrol->value.integer.value; hda_nid_t vnid = 0; - int changed = 1; + int changed; switch (nid) { case 0x02: