]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ALSA: oxygen: Fix logical-not-parentheses warning
authorTomer Barletz <barletz@gmail.com>
Sun, 2 Aug 2015 09:08:57 +0000 (02:08 -0700)
committerTakashi Iwai <tiwai@suse.de>
Mon, 3 Aug 2015 08:15:09 +0000 (10:15 +0200)
This fixes the following warning, that is seen with gcc 5.1:
warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses].

Signed-off-by: Tomer Barletz <barletz@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/oxygen/oxygen_mixer.c

index 6492bca8c70f8bbfdf31e2fb13321904f5a5b00a..4ca12665ff730c6980e2a4366dd195e47f94aecd 100644 (file)
@@ -88,7 +88,7 @@ static int dac_mute_put(struct snd_kcontrol *ctl,
        int changed;
 
        mutex_lock(&chip->mutex);
-       changed = !value->value.integer.value[0] != chip->dac_mute;
+       changed = (!value->value.integer.value[0]) != chip->dac_mute;
        if (changed) {
                chip->dac_mute = !value->value.integer.value[0];
                chip->model.update_dac_mute(chip);