layerscape: add ls1088ardb device support
[openwrt/staging/lynxis/omap.git] / target / linux / layerscape / patches-4.4 / 7154-staging-fsl-mc-Remove-unneeded-parentheses.patch
1 From 6ce3c078c4eac406b38de689c8e366d7345a51ba Mon Sep 17 00:00:00 2001
2 From: Janani Ravichandran <janani.rvchndrn@gmail.com>
3 Date: Thu, 11 Feb 2016 18:00:25 -0500
4 Subject: [PATCH 154/226] staging: fsl-mc: Remove unneeded parentheses
5
6 Remove unneeded parentheses on the right hand side of assignment
7 statements.
8 Semantic patch:
9
10 @@
11 expression a, b, c;
12 @@
13
14 (
15 a = (b == c)
16 |
17 a =
18 - (
19 b
20 - )
21 )
22
23 Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
24 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
25 ---
26 drivers/staging/fsl-mc/bus/dprc-driver.c | 2 +-
27 1 file changed, 1 insertion(+), 1 deletion(-)
28
29 --- a/drivers/staging/fsl-mc/bus/dprc-driver.c
30 +++ b/drivers/staging/fsl-mc/bus/dprc-driver.c
31 @@ -129,7 +129,7 @@ static void check_plugged_state_change(s
32 {
33 int error;
34 u32 plugged_flag_at_mc =
35 - (obj_desc->state & DPRC_OBJ_STATE_PLUGGED);
36 + obj_desc->state & DPRC_OBJ_STATE_PLUGGED;
37
38 if (plugged_flag_at_mc !=
39 (mc_dev->obj_desc.state & DPRC_OBJ_STATE_PLUGGED)) {