Skip to content

Commit

Permalink
net: stmmac: fix double-initialization of phy_iface
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
LABBE Corentin authored and David S. Miller committed Nov 5, 2015
1 parent 9b15acb commit 428ad1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ static int gmac_clk_init(struct rk_priv_data *bsp_priv)

static int gmac_clk_enable(struct rk_priv_data *bsp_priv, bool enable)
{
int phy_iface = phy_iface = bsp_priv->phy_iface;
int phy_iface = bsp_priv->phy_iface;

if (enable) {
if (!bsp_priv->clk_enabled) {
Expand Down

0 comments on commit 428ad1b

Please sign in to comment.