Commit 345502af authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller

net: stmmac: Fix missing { } around two statements in an if statement

There are missing { } around a block of code on an if statement. Fix this
by adding them in.

Addresses-Coverity: ("Nesting level does not match indentation")
Fixes: 46682cb8 ("net: stmmac: enable Intel mGbE 2.5Gbps link speed")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ba539319
...@@ -932,9 +932,10 @@ static void stmmac_validate(struct phylink_config *config, ...@@ -932,9 +932,10 @@ static void stmmac_validate(struct phylink_config *config,
phylink_set(mask, 1000baseT_Full); phylink_set(mask, 1000baseT_Full);
phylink_set(mask, 1000baseX_Full); phylink_set(mask, 1000baseX_Full);
} else if (priv->plat->has_gmac4) { } else if (priv->plat->has_gmac4) {
if (!max_speed || max_speed >= 2500) if (!max_speed || max_speed >= 2500) {
phylink_set(mac_supported, 2500baseT_Full); phylink_set(mac_supported, 2500baseT_Full);
phylink_set(mac_supported, 2500baseX_Full); phylink_set(mac_supported, 2500baseX_Full);
}
} else if (priv->plat->has_xgmac) { } else if (priv->plat->has_xgmac) {
if (!max_speed || (max_speed >= 2500)) { if (!max_speed || (max_speed >= 2500)) {
phylink_set(mac_supported, 2500baseT_Full); phylink_set(mac_supported, 2500baseT_Full);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment