mbox series

[net-next,0/5] net: phylink: phylink_resolve() cleanups

Message ID Zy411lVWe2SikuOs@shell.armlinux.org.uk (mailing list archive)
Headers show
Series net: phylink: phylink_resolve() cleanups | expand

Message

Russell King (Oracle) Nov. 8, 2024, 4:01 p.m. UTC
Hi,

This series does a bit of clean-up in phylink_resolve() to make the code
a little easier to follow.

Patch 1 moves the manual flow control setting in two of the switch
cases to after the switch().

Patch 2 changes the MLO_AN_FIXED case to be a simple if() statement,
reducing its indentation.

Patch 3 changes the MLO_AN_PHY case to also be a simple if() statment,
also reducing its indentation.

Patch 4 does the same for the last case.

Patch 5 reformats the code and comments for the reduced indentation,
making it easier to read.

 drivers/net/phy/phylink.c | 106 +++++++++++++++++++++-------------------------
 1 file changed, 48 insertions(+), 58 deletions(-)