From 4f1cbe2a7b4fa50e5ae09e0a564c9dc4101b02fd Mon Sep 17 00:00:00 2001 From: Eva Rachel Retuya Date: Wed, 21 Sep 2016 13:03:24 +0800 Subject: 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/audio_topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/staging') 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 */ -- cgit v1.2.3