diff options
author | Joe Perches <joe@perches.com> | 2011-11-16 13:38:06 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-17 05:23:18 +0400 |
commit | b721e25383c394f24fa19a66517c5efca382c2e5 (patch) | |
tree | 94ebcb73f595292fae47736dfdcfa2caf8ac1bf9 /drivers/net/ethernet/freescale/ucc_geth.c | |
parent | c857ff6ecef1c7a1eb10c97c72d7230683392e9c (diff) | |
download | linux-b721e25383c394f24fa19a66517c5efca382c2e5.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/freescale/ucc_geth.c')
-rw-r--r-- | drivers/net/ethernet/freescale/ucc_geth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c index b5dc0273a1d1..ba2dc083bfc0 100644 --- a/drivers/net/ethernet/freescale/ucc_geth.c +++ b/drivers/net/ethernet/freescale/ucc_geth.c @@ -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 |