projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ddd637
)
smsc911x: remove superfluous variable init
author
Wolfram Sang
<wsa+renesas@sang-engineering.com>
Wed, 29 Mar 2023 06:44:14 +0000
(08:44 +0200)
committer
Paolo Abeni
<pabeni@redhat.com>
Thu, 30 Mar 2023 13:35:33 +0000
(15:35 +0200)
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>
drivers/net/ethernet/smsc/smsc911x.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/smsc/smsc911x.c
b/drivers/net/ethernet/smsc/smsc911x.c
index 39446d4e94b633c579c31d49b99bcb22eff7aabb..c653ea792dd1b1064d9d7d8b36484e647261d033 100644
(file)
--- 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 */