smsc911x: remove superfluous variable init
Subsystems (3)
PATCH v2 1/1 smsc911x: remove superfluous variable init
phydev is assigned a value right away, no need to initialize it.
Signed-off-by Wolfram Sang <[email protected]>
Reviewed-by Geert Uytterhoeven <[email protected]>
---
Changes since v1:
* rebased to net-next as of today
* added Geert's tag (thanks!)
drivers/net/ethernet/smsc/smsc911x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/smsc/smsc911x.c +1 -1
@@ -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 */
Signature · 1 line
2.30.2
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:
Quoted 11 lines · 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 <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>---
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!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html