diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2023-03-29 08:44:14 +0200 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-03-30 15:35:33 +0200 |
commit | da617cd8d90608582eb8d0b58026f31f1a9bfb1d (patch) | |
tree | 4bea34aa7d71eb044ffcf6a7db352e9802ce650c | |
parent | Merge branch 'net-rps-rfs-improvements' (diff) | |
download | linux-da617cd8d90608582eb8d0b58026f31f1a9bfb1d.tar.xz linux-da617cd8d90608582eb8d0b58026f31f1a9bfb1d.zip |
smsc911x: remove superfluous variable init
phydev is assigned a value right away, no need to initialize it.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230329064414.25028-1-wsa+renesas@sang-engineering.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
-rw-r--r-- | drivers/net/ethernet/smsc/smsc911x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/smsc/smsc911x.c b/drivers/net/ethernet/smsc/smsc911x.c index 39446d4e94b6..c653ea792dd1 100644 --- a/drivers/net/ethernet/smsc/smsc911x.c +++ b/drivers/net/ethernet/smsc/smsc911x.c @@ -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 */ |