From: Tobias Klauser Date: Fri, 30 May 2014 07:47:17 +0000 (+0200) Subject: net: tile: Use helpers from linux/etherdevice.h to check/set MAC X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~125 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d581ebf5a1f;p=pandora-kernel.git net: tile: Use helpers from linux/etherdevice.h to check/set MAC 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 Acked-by: Chris Metcalf Signed-off-by: David S. Miller --- Reading git-diff-tree failed