Re: [PATCH v2 2/2] net: tile: Use helpers from linux/etherdevice.h to check/set MAC
From: David Miller <davem@davemloft.net>
Date: 2014-05-31 00:06:57
From: David Miller <davem@davemloft.net>
Date: 2014-05-31 00:06:57
From: Tobias Klauser <tklauser@distanz.ch> Date: Fri, 30 May 2014 09:47:17 +0200
Use is_zero_ether_addr() to check for the MAC address being all zeros instead of open coding the check. Also use ether_addr_copy() instead of a manual memcpy() to set the netdev->dev_addr. Furthermore, get rid of a redundant assignment of netdev->addr_len. This is already set by ether_setup() which is called in tile_net_setup(). Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Acked-by: Chris Metcalf <redacted>
Applied.