On Thu, Jan 04, 2024 at 04:00:34PM +0200, Vladimir Oltean wrote:
__of_mdiobus_register() already calls __mdiobus_register() if the
OF node provided as argument is NULL. We can take advantage of that
and simplify the 2 code path, calling devm_of_mdiobus_register() only
once for both cases.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Much neater!
Reviewed-by: Alvin Šipraga <redacted>
quoted hunk ↗ jump to hunk
---
drivers/net/dsa/qca/qca8k-8xxx.c | 24 +++++++++++-------------
1 file changed, 11 insertions(+), 13 deletions(-)