On Tue, 05 Oct 2021 16:34:02 +0100 Russell King (Oracle) wrote:
quoted hunk ↗ jump to hunk
Use the mdiobus_modify_changed() helper in the C22 PCS advertisement
helper.
Signed-off-by: Russell King (Oracle) <redacted>
---
drivers/net/phy/phylink.c | 28 ++++------------------------
1 file changed, 4 insertions(+), 24 deletions(-)
diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index b32774fd65f8..d76362028752 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
drivers/net/phy/phylink.c: In function ‘phylink_mii_c22_pcs_set_advertisement’:
drivers/net/phy/phylink.c:2599:11: warning: unused variable ‘ret’ [-Wunused-variable]
2599 | int val, ret;
| ^~~
drivers/net/phy/phylink.c:2599:6: warning: unused variable ‘val’ [-Wunused-variable]
2599 | int val, ret;
| ^~~