Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Wolfram Sang and committed by
Paolo Abeni
da617cd8 4ddd6375

+1 -1
+1 -1
drivers/net/ethernet/smsc/smsc911x.c
··· 1016 1016 static int smsc911x_mii_probe(struct net_device *dev) 1017 1017 { 1018 1018 struct smsc911x_data *pdata = netdev_priv(dev); 1019 - struct phy_device *phydev = NULL; 1019 + struct phy_device *phydev; 1020 1020 int ret; 1021 1021 1022 1022 /* find the first phy */