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>
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 */