Message ID | 20230329064414.25028-1-wsa+renesas@sang-engineering.com (mailing list archive) |
---|---|
State | Accepted |
Commit | da617cd8d90608582eb8d0b58026f31f1a9bfb1d |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next,v2] smsc911x: remove superfluous variable init | expand |
Hello: This patch was applied to netdev/net-next.git (main) by Paolo Abeni <pabeni@redhat.com>: On Wed, 29 Mar 2023 08:44:14 +0200 you wrote: > 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> > --- > > Changes since v1: > * rebased to net-next as of today > * added Geert's tag (thanks!) > > [...] Here is the summary with links: - [net-next,v2] smsc911x: remove superfluous variable init https://git.kernel.org/netdev/net-next/c/da617cd8d906 You are awesome, thank you!
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 */