]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: phylink: remove switch() statement in resolve handling
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 8 Nov 2024 16:02:00 +0000 (16:02 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Nov 2024 03:05:14 +0000 (19:05 -0800)
commitd1a16dbbd84e02d2a6dcfcb8d5c4b8b2c0289f00
tree4653a1931989b8007ccf26c64d85b951701df0b5
parentf0f46c2a3d8ea9d1427298c8103a777d9e616c29
net: phylink: remove switch() statement in resolve handling

The switch() statement doesn't sit very well with the preceeding if()
statements, so let's just convert everything to if()s. As a result of
the two preceding commits, there is now only one case in the switch()
statement. Remove the switch statement and reduce the code indentation.
Code reformatting will be in the following commit.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1t9RQu-002Fez-AA@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phylink.c