提交 c0a77ec7 编写于 作者: D Dave Jones 提交者: David S. Miller

bnx2x: Add missing braces in bnx2x:bnx2x_link_initialize

The indentation here implies that the intent was for this to be a multiline if.
Introduced a few years ago in commit ec146a6f ("bnx2x: Modify XGXS functions")
Signed-off-by: NDave Jones <davej@fedoraproject.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f011baf9
...@@ -6501,12 +6501,13 @@ static int bnx2x_link_initialize(struct link_params *params, ...@@ -6501,12 +6501,13 @@ static int bnx2x_link_initialize(struct link_params *params,
struct bnx2x_phy *phy = &params->phy[INT_PHY]; struct bnx2x_phy *phy = &params->phy[INT_PHY];
if (vars->line_speed == SPEED_AUTO_NEG && if (vars->line_speed == SPEED_AUTO_NEG &&
(CHIP_IS_E1x(bp) || (CHIP_IS_E1x(bp) ||
CHIP_IS_E2(bp))) CHIP_IS_E2(bp))) {
bnx2x_set_parallel_detection(phy, params); bnx2x_set_parallel_detection(phy, params);
if (params->phy[INT_PHY].config_init) if (params->phy[INT_PHY].config_init)
params->phy[INT_PHY].config_init(phy, params->phy[INT_PHY].config_init(phy,
params, params,
vars); vars);
}
} }
/* Init external phy*/ /* Init external phy*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册