mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
9b15acbfe9
commit
428ad1bc6d
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue