net: phylink: remove use of pl->pcs in phylink_validate_mac_and_pcs()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 16 Oct 2024 09:58:39 +0000 (10:58 +0100)
committerAndrew Lunn <andrew@lunn.ch>
Thu, 17 Oct 2024 23:15:15 +0000 (18:15 -0500)
commit6c48cd044cc8f81b65872c8771a333fbad95997c
treee20b7454179c62b9d32f409c184733352a2593da
parent486dc391ef439d45db3f7eda2229560fd2b52a78
net: phylink: remove use of pl->pcs in phylink_validate_mac_and_pcs()

When the mac_select_pcs() method is not implemented, there is no way
for pl->pcs to be set to a non-NULL value. This was here to support
the old phylink_set_pcs() method which has been removed a few years
ago. Simplify the code in phylink_validate_mac_and_pcs().

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
drivers/net/phy/phylink.c