]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: phylink: simplify phylink_resolve() -> phylink_major_config() path
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 19 Jan 2026 12:19:51 +0000 (14:19 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Jan 2026 03:50:54 +0000 (19:50 -0800)
commit7bf588dc62a05c1866efe098e1b188fd879aa2cf
treedbdba3e6e4d0e8799f3591a7827661ae55b5ae8b
parent331cf8fc1855c2c750cbc3fb797e71ac8e4428cf
net: phylink: simplify phylink_resolve() -> phylink_major_config() path

This is a trivial change with no functional effect which replaces the
pattern:

if (a) {
if (b) {
do_stuff();
}
}

with:

if (a && b) {
do_stuff();
};

The purpose is to reduce the delta of a subsequent functional change.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/20260119121954.1624535-2-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phylink.c