diff options
| author | Alok Tiwari <alok.a.tiwari@oracle.com> | 2025-10-17 12:35:20 -0700 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-10-20 16:43:54 -0700 |
| commit | 3dfdc98d1dc29d6339fd0551348df0d968fd9ad4 (patch) | |
| tree | 82636733ed689e377dda5a3b27b12c45de03f5af /tools/perf/scripts/python/stackcollapse.py | |
| parent | 88224095b4e512b027289183f432c0e84925d648 (diff) | |
net: phy: micrel: simplify return in ksz9477_phy_errata()
ksz9477_phy_errata function currently assigns the return value of
genphy_restart_aneg() to a variable and then immediately returns it
err = genphy_restart_aneg(phydev);
if (err)
return err;
return err;
This can be simplified by directly returning the function call
result, as the intermediate variable and conditional are redundant.
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20251017193525.1457064-1-alok.a.tiwari@oracle.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
