staging: greybus: audio: delete unnecessary parentheses
authorEva Rachel Retuya <eraretuya@gmail.com>
Wed, 21 Sep 2016 05:03:24 +0000 (13:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Sep 2016 09:54:47 +0000 (11:54 +0200)
Eliminate unneeded parentheses around the right hand side of an assignment.
Coccinelle semantic patch used:

@@
expression e1, e2;
identifier v;
@@

(
 v = (e1 == e2)
|
 v = (e1 != e2)
|
 v = (e1 <= e2)
|
 v = (e1 >= e2)
|
 v =
- (
e1
- )
)

Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/audio_topology.c

index 5eef536..f9f3381 100644 (file)
@@ -459,7 +459,7 @@ static int gbcodec_mixer_dapm_ctl_put(struct snd_kcontrol *kcontrol,
 
        max = info->value.integer.max;
        mask = (1 << fls(max)) - 1;
-       val = (ucontrol->value.integer.value[0] & mask);
+       val = ucontrol->value.integer.value[0] & mask;
        connect = !!val;
 
        /* update ucontrol */