diff options
author | Eva Rachel Retuya <eraretuya@gmail.com> | 2016-09-21 08:03:24 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-22 12:54:47 +0300 |
commit | 4f1cbe2a7b4fa50e5ae09e0a564c9dc4101b02fd (patch) | |
tree | 64eb70b30db238463c076998bc622e5557beedba /drivers/staging/greybus | |
parent | ce35e9be62837d8242472264b511f9c27992adfa (diff) | |
download | linux-4f1cbe2a7b4fa50e5ae09e0a564c9dc4101b02fd.tar.xz |
staging: greybus: audio: delete unnecessary parentheses
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>
Diffstat (limited to 'drivers/staging/greybus')
-rw-r--r-- | drivers/staging/greybus/audio_topology.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/audio_topology.c b/drivers/staging/greybus/audio_topology.c index 5eef5367896c..f9f33817a092 100644 --- a/drivers/staging/greybus/audio_topology.c +++ b/drivers/staging/greybus/audio_topology.c @@ -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 */ |