Skip to contentSkip to conversation

smsc911x: remove superfluous variable init

PATCH Applied Wolfram Sang 2 participants 2 messages Mar 29, 2023 – Mar 30, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 smsc911x: remove superfluous variable init

phydev is assigned a value right away, no need to initialize it.

---

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
index 39446d4e94b6..c653ea792dd1 100644
@@ -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
#1 lore raw
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.

---

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