diff options
author | Julia Lawall <julia@diku.dk> | 2010-08-05 06:26:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-17 00:06:28 -0400 |
commit | cc81735e8099deaed7436418f6d83a98be2c2101 (patch) | |
tree | 694e38698aec71a836696ee47ef0fbcd1f552933 /drivers | |
parent | 2145f1afc6b2abe97d983e90c53a1dc17e2da831 (diff) |
drivers/net/bnx2x: Adjust confusing if indentation
Outdent the code following the if.
The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@r disable braces4@
position p1,p2;
statement S1,S2;
@@
(
if (...) { ... }
|
if (...) S1@p1 S2@p2
)
@script:python@
p1 << r.p1;
p2 << r.p2;
@@
if (p1[0].column == p2[0].column):
cocci.print_main("branch",p1)
cocci.print_secs("after",p2)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/bnx2x/bnx2x_link.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/bnx2x/bnx2x_link.c b/drivers/net/bnx2x/bnx2x_link.c index 0383e3066313..0fa09913051d 100644 --- a/drivers/net/bnx2x/bnx2x_link.c +++ b/drivers/net/bnx2x/bnx2x_link.c | |||
@@ -1254,11 +1254,11 @@ static void bnx2x_set_autoneg(struct link_params *params, | |||
1254 | PORT_HW_CFG_SPEED_CAPABILITY_D0_1G) | 1254 | PORT_HW_CFG_SPEED_CAPABILITY_D0_1G) |
1255 | reg_val |= MDIO_CL73_IEEEB1_AN_ADV2_ADVR_1000M_KX; | 1255 | reg_val |= MDIO_CL73_IEEEB1_AN_ADV2_ADVR_1000M_KX; |
1256 | 1256 | ||
1257 | CL45_WR_OVER_CL22(bp, params->port, | 1257 | CL45_WR_OVER_CL22(bp, params->port, |
1258 | params->phy_addr, | 1258 | params->phy_addr, |
1259 | MDIO_REG_BANK_CL73_IEEEB1, | 1259 | MDIO_REG_BANK_CL73_IEEEB1, |
1260 | MDIO_CL73_IEEEB1_AN_ADV2, | 1260 | MDIO_CL73_IEEEB1_AN_ADV2, |
1261 | reg_val); | 1261 | reg_val); |
1262 | 1262 | ||
1263 | /* CL73 Autoneg Enabled */ | 1263 | /* CL73 Autoneg Enabled */ |
1264 | reg_val = MDIO_CL73_IEEEB0_CL73_AN_CONTROL_AN_EN; | 1264 | reg_val = MDIO_CL73_IEEEB0_CL73_AN_CONTROL_AN_EN; |