ucc_geth: Convert ENET_NUM_OCTETS_PER_ADDRESS uses to ETH_ALEN
Reduce the number of #defines, use the normal #define from if_ether.h Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
c857ff6ece
commit
b721e25383
@@ -443,7 +443,7 @@ static void hw_add_addr_in_hash(struct ucc_geth_private *ugeth,
|
||||
|
||||
static inline int compare_addr(u8 **addr1, u8 **addr2)
|
||||
{
|
||||
return memcmp(addr1, addr2, ENET_NUM_OCTETS_PER_ADDRESS);
|
||||
return memcmp(addr1, addr2, ETH_ALEN);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
|
Reference in New Issue
Block a user