diff options
author | Joe Perches <joe@perches.com> | 2011-11-16 09:38:02 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-16 20:23:17 -0500 |
commit | 6a3c910ca04ecd69b16dae47b26097a92c533828 (patch) | |
tree | 27d9f1c13c039f67e58120ea12cf65b89a531ee0 /drivers/net/ethernet/realtek | |
parent | 28011cf19b75df9d3f35489a7599a97ec0b3f1a0 (diff) | |
download | blackbird-op-linux-6a3c910ca04ecd69b16dae47b26097a92c533828.tar.gz blackbird-op-linux-6a3c910ca04ecd69b16dae47b26097a92c533828.zip |
ethernet: Convert MAC_ADDR_LEN 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/realtek')
-rw-r--r-- | drivers/net/ethernet/realtek/r8169.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index 2dfb0c0ea01b..f7bc310f5185 100644 --- a/drivers/net/ethernet/realtek/r8169.c +++ b/drivers/net/ethernet/realtek/r8169.c @@ -69,9 +69,6 @@ The RTL chips use a 64 element hash table based on the Ethernet CRC. */ static const int multicast_filter_limit = 32; -/* MAC address length */ -#define MAC_ADDR_LEN 6 - #define MAX_READ_REQUEST_SHIFT 12 #define TX_DMA_BURST 6 /* Maximum PCI burst, '6' is 1024 */ #define SafeMtu 0x1c20 /* ... actually life sucks beyond ~7k */ @@ -4101,7 +4098,7 @@ rtl8169_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) spin_lock_init(&tp->lock); /* Get MAC address */ - for (i = 0; i < MAC_ADDR_LEN; i++) + for (i = 0; i < ETH_ALEN; i++) dev->dev_addr[i] = RTL_R8(MAC0 + i); memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len); |