staging: fsl-mc: Remove unneeded parentheses
authorJanani Ravichandran <janani.rvchndrn@gmail.com>
Thu, 11 Feb 2016 23:00:25 +0000 (18:00 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Feb 2016 04:05:35 +0000 (20:05 -0800)
Remove unneeded parentheses on the right hand side of assignment
statements.
Semantic patch:

@@
expression a, b, c;
@@

(
  a = (b == c)
|
  a =
- (
  b
- )
)

Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/dprc-driver.c

index 52c6fce..9380ebc 100644 (file)
@@ -129,7 +129,7 @@ static void check_plugged_state_change(struct fsl_mc_device *mc_dev,
 {
        int error;
        u32 plugged_flag_at_mc =
-                       (obj_desc->state & DPRC_OBJ_STATE_PLUGGED);
+                       obj_desc->state & DPRC_OBJ_STATE_PLUGGED;
 
        if (plugged_flag_at_mc !=
            (mc_dev->obj_desc.state & DPRC_OBJ_STATE_PLUGGED)) {