Commit da617cd8 authored by Wolfram Sang's avatar Wolfram Sang Committed by Paolo Abeni

smsc911x: remove superfluous variable init

phydev is assigned a value right away, no need to initialize it.
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230329064414.25028-1-wsa+renesas@sang-engineering.comSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 4ddd6375
......@@ -1016,7 +1016,7 @@ static void smsc911x_phy_adjust_link(struct net_device *dev)
static int smsc911x_mii_probe(struct net_device *dev)
{
struct smsc911x_data *pdata = netdev_priv(dev);
struct phy_device *phydev = NULL;
struct phy_device *phydev;
int ret;
/* find the first phy */
......
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