Subject: [PATCH net-next] ibm: emac: remove unused emac_link_differs function

From: Ethan Nelson-Moore <[email-masked]>
Date: Tue, 6 Jan 2026 23:36:01 -0800

Signed-off-by: Ethan Nelson-Moore <[email-masked]>
---
 drivers/net/ethernet/ibm/emac/core.c | 33 ----------------------------
 1 file changed, 33 deletions(-)

diff --git a/drivers/net/ethernet/ibm/emac/core.c b/drivers/net/ethernet/ibm/emac/core.c
index 417dfa18daae..72936d47d011 100644
--- a/drivers/net/ethernet/ibm/emac/core.c
+++ b/drivers/net/ethernet/ibm/emac/core.c
@@ -1277,39 +1277,6 @@ static int emac_open(struct net_device *ndev)
 	return -ENOMEM;
 }
 
-/* BHs disabled */
-#if 0
-static int emac_link_differs(struct emac_instance *dev)
-{
-	u32 r = in_be32(&dev->emacp->mr1);
-
-	int duplex = r & EMAC_MR1_FDE ? DUPLEX_FULL : DUPLEX_HALF;
-	int speed, pause, asym_pause;
-
-	if (r & EMAC_MR1_MF_1000)
-		speed = SPEED_1000;
-	else if (r & EMAC_MR1_MF_100)
-		speed = SPEED_100;
-	else
-		speed = SPEED_10;
-
-	switch (r & (EMAC_MR1_EIFC | EMAC_MR1_APP)) {
-	case (EMAC_MR1_EIFC | EMAC_MR1_APP):
-		pause = 1;
-		asym_pause = 0;
-		break;
-	case EMAC_MR1_APP:
-		pause = 0;
-		asym_pause = 1;
-		break;
-	default:
-		pause = asym_pause = 0;
-	}
-	return speed != dev->phy.speed || duplex != dev->phy.duplex ||
-	    pause != dev->phy.pause || asym_pause != dev->phy.asym_pause;
-}
-#endif
-
 static void emac_link_timer(struct work_struct *work)
 {
 	struct emac_instance *dev =
-- 
2.43.0