ALSA: oxygen: Fix logical-not-parentheses warning
authorTomer Barletz <barletz@gmail.com>
Sun, 2 Aug 2015 09:08:57 +0000 (02:08 -0700)
committerWilly Tarreau <w@1wt.eu>
Sat, 27 Aug 2016 09:40:40 +0000 (11:40 +0200)
commit 8ec7cfce3762299ae289c384e281b2f4010ae231 upstream.

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>
Signed-off-by: Willy Tarreau <w@1wt.eu>
sound/pci/oxygen/oxygen_mixer.c

index c0dbb52d45be5306799fb144e63e60d81348045e..1e4bcb900fc6dfbc61e9adda5d328d72f91927d3 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);