layerscape: add ls1088ardb device support
[openwrt/staging/lynxis/omap.git] / target / linux / layerscape / patches-4.4 / 7157-staging-fsl-mc-Remove-unneeded-else-following-a-retu.patch
1 From 5f82c6ff69f3a4bb635e619a893292bea711421e Mon Sep 17 00:00:00 2001
2 From: Janani Ravichandran <janani.rvchndrn@gmail.com>
3 Date: Thu, 18 Feb 2016 17:22:50 -0500
4 Subject: [PATCH 157/226] staging: fsl-mc: Remove unneeded else following a
5 return
6
7 Remove unnecessary else when there is a return statement in the
8 corresponding if block. Coccinelle patch used:
9
10 @rule1@
11 expression e1;
12 @@
13
14 if (e1) { ... return ...; }
15 - else{
16 ...
17 - }
18
19 @rule2@
20 expression e2;
21 statement s1;
22 @@
23
24 if(e2) { ... return ...; }
25 - else
26 s1
27
28 Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
29 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
30 ---
31 drivers/staging/fsl-mc/bus/mc-bus.c | 3 +--
32 1 file changed, 1 insertion(+), 2 deletions(-)
33
34 --- a/drivers/staging/fsl-mc/bus/mc-bus.c
35 +++ b/drivers/staging/fsl-mc/bus/mc-bus.c
36 @@ -248,8 +248,7 @@ static bool fsl_mc_is_root_dprc(struct d
37 fsl_mc_get_root_dprc(dev, &root_dprc_dev);
38 if (!root_dprc_dev)
39 return false;
40 - else
41 - return dev == root_dprc_dev;
42 + return dev == root_dprc_dev;
43 }
44
45 static int get_dprc_icid(struct fsl_mc_io *mc_io,