aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-05-30 03:47:17 -0400
committerDavid S. Miller <davem@davemloft.net>2014-05-30 20:06:23 -0400
commitd581ebf5a1f82a27d7df21bd1d76e517c67b49d5 (patch)
treef9b0c3658f3176528622a86625035dc163530e82 /tools/perf/scripts/python
parent08f6dd89d26f8599dd138c25506960e3856fd062 (diff)
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 <tklauser@distanz.ch> Acked-by: Chris Metcalf <cmetcalf@tilera.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions