projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9753613
)
net: phy: c45: genphy_c45_an_config_aneg(): fix uninitialized symbol error
author
Oleksij Rempel
<o.rempel@pengutronix.de>
Wed, 15 Feb 2023 05:04:53 +0000
(06:04 +0100)
committer
Jakub Kicinski
<kuba@kernel.org>
Thu, 16 Feb 2023 05:24:37 +0000
(21:24 -0800)
Fix warning:
drivers/net/phy/phy-c45.c:712 genphy_c45_write_eee_adv() error: uninitialized symbol 'changed'
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Link:
https://lore.kernel.org/r/202302150232.q6idsV8s-lkp@intel.com/
Fixes:
022c3f87f88e
("net: phy: add genphy_c45_ethtool_get/set_eee() support")
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link:
https://lore.kernel.org/r/20230215050453.2251360-1-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phy-c45.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/phy-c45.c
b/drivers/net/phy/phy-c45.c
index
ef36582
..
f9b128c
100644
(file)
--- a/
drivers/net/phy/phy-c45.c
+++ b/
drivers/net/phy/phy-c45.c
@@
-256,7
+256,7
@@
static int genphy_c45_baset1_an_config_aneg(struct phy_device *phydev)
*/
int genphy_c45_an_config_aneg(struct phy_device *phydev)
{
- int changed, ret;
+ int changed
= 0
, ret;
u32 adv;
linkmode_and(phydev->advertising, phydev->advertising,