diff options
author | Joe Perches <joe@perches.com> | 2011-11-16 10:38:03 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-17 02:23:17 +0100 |
commit | 104bf3fb963cbc39c6675b23d46d2c9ab3f311d8 (patch) | |
tree | c0f07ad8b1b299ce56e091f573fbfcab9959679d /drivers/net/ethernet/8390/lne390.c | |
parent | ethernet: Convert MAC_ADDR_LEN uses to ETH_ALEN (diff) | |
download | linux-104bf3fb963cbc39c6675b23d46d2c9ab3f311d8.tar.xz linux-104bf3fb963cbc39c6675b23d46d2c9ab3f311d8.zip |
ethernet: Convert ETHER_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/8390/lne390.c')
-rw-r--r-- | drivers/net/ethernet/8390/lne390.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/8390/lne390.c b/drivers/net/ethernet/8390/lne390.c index f9888d20177b..69490ae018ea 100644 --- a/drivers/net/ethernet/8390/lne390.c +++ b/drivers/net/ethernet/8390/lne390.c @@ -191,14 +191,14 @@ static int __init lne390_probe1(struct net_device *dev, int ioaddr) || inb(ioaddr + LNE390_SA_PROM + 1) != LNE390_ADDR1 || inb(ioaddr + LNE390_SA_PROM + 2) != LNE390_ADDR2 ) { printk("lne390.c: card not found"); - for(i = 0; i < ETHER_ADDR_LEN; i++) + for (i = 0; i < ETH_ALEN; i++) printk(" %02x", inb(ioaddr + LNE390_SA_PROM + i)); printk(" (invalid prefix).\n"); return -ENODEV; } #endif - for(i = 0; i < ETHER_ADDR_LEN; i++) + for (i = 0; i < ETH_ALEN; i++) dev->dev_addr[i] = inb(ioaddr + LNE390_SA_PROM + i); printk("lne390.c: LNE390%X in EISA slot %d, address %pM.\n", 0xa+revision, ioaddr/0x1000, dev->dev_addr); |