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(-)

Comments

patchwork-bot+netdevbpf@kernel.org Nov. 12, 2024, 3:40 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Fri, 8 Nov 2024 16:01:26 +0000 you wrote:
> 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().
> 
> [...]

Here is the summary with links:
  - [net-next,1/5] net: phylink: move manual flow control setting
    https://git.kernel.org/netdev/net-next/c/8cc5f4cb94c0
  - [net-next,2/5] net: phylink: move MLO_AN_FIXED resolve handling to if() statement
    https://git.kernel.org/netdev/net-next/c/92abfcb4ced4
  - [net-next,3/5] net: phylink: move MLO_AN_PHY resolve handling to if() statement
    https://git.kernel.org/netdev/net-next/c/f0f46c2a3d8e
  - [net-next,4/5] net: phylink: remove switch() statement in resolve handling
    https://git.kernel.org/netdev/net-next/c/d1a16dbbd84e
  - [net-next,5/5] net: phylink: clean up phylink_resolve()
    https://git.kernel.org/netdev/net-next/c/bc08ce37d99a

You are awesome, thank you!