1 From 1af2e375a76c55d227b7d1b1f1ba1c9cf850946a Mon Sep 17 00:00:00 2001
2 From: Calvin Johnson <calvin.johnson@nxp.com>
3 Date: Thu, 4 Oct 2018 09:39:00 +0530
4 Subject: [PATCH] staging: fsl_ppfe/eth: resolve indentation warning
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Resolve the following indentation warning:
11 drivers/staging/fsl_ppfe/pfe_ls1012a_platform.c:
12 In function ‘pfe_get_gemac_if_proprties’:
13 drivers/staging/fsl_ppfe/pfe_ls1012a_platform.c:96:2:
14 warning: this ‘else’ clause does not guard...
15 [-Wmisleading-indentation]
18 drivers/staging/fsl_ppfe/pfe_ls1012a_platform.c:98:3:
19 note: ...this statement, but the latter is misleadingly indented as
20 if it were guarded by the ‘else’
21 pdata->ls1012a_eth_pdata[port].mdio_muxval = phy_id;
24 Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com>
26 drivers/staging/fsl_ppfe/pfe_ls1012a_platform.c | 5 +++--
27 1 file changed, 3 insertions(+), 2 deletions(-)
29 --- a/drivers/staging/fsl_ppfe/pfe_ls1012a_platform.c
30 +++ b/drivers/staging/fsl_ppfe/pfe_ls1012a_platform.c
31 @@ -83,11 +83,12 @@ static int pfe_get_gemac_if_proprties(st
34 addr = of_get_property(gem, "fsl,mdio-mux-val", &size);
37 pr_err("%s: Invalid mdio-mux-val....\n", __func__);
40 phy_id = be32_to_cpup(addr);
41 pdata->ls1012a_eth_pdata[port].mdio_muxval = phy_id;
44 if (pdata->ls1012a_eth_pdata[port].phy_id < 32)
45 pfe->mdio_muxval[pdata->ls1012a_eth_pdata[port].phy_id] =