ALSA: hda/ca0132 - remove redundant assignment to variable 'changed'
authorColin Ian King <colin.king@canonical.com>
Thu, 4 Jul 2019 12:44:25 +0000 (13:44 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 4 Jul 2019 13:13:38 +0000 (15:13 +0200)
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 <colin.king@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_ca0132.c

index de61179c91e2cdcc95de01fba569ea1c692f9488..49adfc4ef5de5cd65653772e8bba5e889e9b6030 100644 (file)
@@ -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: