Skip to contentSkip to conversation

staging: greybus: audio: delete unnecessary parentheses

PATCH New Eva Rachel Retuya 1 participant 1 message Sep 21, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

- )
)

---
 drivers/staging/greybus/audio_topology.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/greybus/audio_topology.c +1 -1
index 5eef536..f9f3381 100644
@@ -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 */
Signature · 1 line
2.7.4