Skip to contentSkip to conversation

net: freescale: slight optimization of addr compare

PATCH Superseded Ding Tianhong 1 participant 1 message Dec 24, 2013

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 2/20 net: freescale: slight optimization of addr compare

The function did not be used any more, so remove it.

---
 drivers/net/ethernet/freescale/ucc_geth.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/net/ethernet/freescale/ucc_geth.c +0 -5
index 5548b6d..72291a8 100644
@@ -435,11 +435,6 @@ static void hw_add_addr_in_hash(struct ucc_geth_private *ugeth,
 		     QE_CR_PROTOCOL_ETHERNET, 0);
 }
 
-static inline int compare_addr(u8 **addr1, u8 **addr2)
-{
-	return memcmp(addr1, addr2, ETH_ALEN);
-}
-
 #ifdef DEBUG
 static void get_statistics(struct ucc_geth_private *ugeth,
 			   struct ucc_geth_tx_firmware_statistics *
Signature · 1 line
1.8.0