]> www.infradead.org Git - users/hch/configfs.git/commitdiff
net: stmmac: clean up stmmac_mac_select_pcs()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 13 Jun 2024 10:36:27 +0000 (11:36 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 15 Jun 2024 02:06:41 +0000 (19:06 -0700)
Since all platform providers of PCS now populate the select_pcs()
method, there is no need for the common code to look at
priv->hw->phylink_pcs, so remove it.

Reviewed-by: Romain Gantois <romain.gantois@bootlin.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/E1sHhoh-00FetT-3S@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

index e9e2a95c91a32f4116b86e8b0a33a3b09e943588..5ddbb0d44373343dee158506dff1f156515c382e 100644 (file)
@@ -957,7 +957,7 @@ static struct phylink_pcs *stmmac_mac_select_pcs(struct phylink_config *config,
                        return pcs;
        }
 
-       return priv->hw->phylink_pcs;
+       return NULL;
 }
 
 static void stmmac_mac_config(struct phylink_config *config, unsigned int mode,