Convert the old ether_addr tests to eth_addr_<foo>. Adds api consistency.
Signed-off-by: Joe Perches <j...@perches.com> --- drivers/infiniband/hw/amso1100/c2.c | 2 +- drivers/infiniband/hw/nes/nes_nic.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/amso1100/c2.c b/drivers/infiniband/hw/amso1100/c2.c index 5ce7b9e..3bb307c 100644 --- a/drivers/infiniband/hw/amso1100/c2.c +++ b/drivers/infiniband/hw/amso1100/c2.c @@ -908,7 +908,7 @@ static struct net_device *c2_devinit(struct c2_dev *c2dev, memcpy_fromio(netdev->dev_addr, mmio_addr + C2_REGS_ENADDR, 6); /* Validate the MAC address */ - if (!is_valid_ether_addr(netdev->dev_addr)) { + if (!eth_addr_valid(netdev->dev_addr)) { pr_debug("Invalid MAC Address\n"); c2_print_macaddr(netdev); free_netdev(netdev); diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c index 0564be7..3cd7d38 100644 --- a/drivers/infiniband/hw/nes/nes_nic.c +++ b/drivers/infiniband/hw/nes/nes_nic.c @@ -809,7 +809,7 @@ static int nes_netdev_set_mac_address(struct net_device *netdev, void *p) u32 macaddr_low; u16 macaddr_high; - if (!is_valid_ether_addr(mac_addr->sa_data)) + if (!eth_addr_valid(mac_addr->sa_data)) return -EADDRNOTAVAIL; memcpy(netdev->dev_addr, mac_addr->sa_data, netdev->addr_len); -- 1.7.8.111.gad25c.dirty -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/