diff options
author | LABBE Corentin <clabbe.montjoie@gmail.com> | 2015-11-05 04:26:46 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-05 14:09:26 -0500 |
commit | 428ad1bc6dd766bb44171bba43a8a3219be77d2e (patch) | |
tree | 744e68408a066572d0a57016f8799611f141c3a8 | |
parent | 9b15acbfe937f9c48a81d6aa306f9fa8b53abc13 (diff) |
net: stmmac: fix double-initialization of phy_iface
The variable phy_iface is double-initialized to itself.
This patch remove that.
Reported-by: coverity (CID 1271141)
Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c index 11baa4b19779..0cd3ecff768b 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | |||
@@ -354,7 +354,7 @@ static int gmac_clk_init(struct rk_priv_data *bsp_priv) | |||
354 | 354 | ||
355 | static int gmac_clk_enable(struct rk_priv_data *bsp_priv, bool enable) | 355 | static int gmac_clk_enable(struct rk_priv_data *bsp_priv, bool enable) |
356 | { | 356 | { |
357 | int phy_iface = phy_iface = bsp_priv->phy_iface; | 357 | int phy_iface = bsp_priv->phy_iface; |
358 | 358 | ||
359 | if (enable) { | 359 | if (enable) { |
360 | if (!bsp_priv->clk_enabled) { | 360 | if (!bsp_priv->clk_enabled) { |