]> git.baikalelectronics.ru Git - kernel.git/commit
net: spider_net: do not read mac address again after setting it
authorAntoine Ténart <antoine.tenart@free-electrons.com>
Fri, 3 Oct 2014 15:01:55 +0000 (17:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Oct 2014 01:15:16 +0000 (21:15 -0400)
commit956d8fe6fa516ac4a35f9b94b3bd0b2f26b9d7e6
treeec4215edfef019a8eae82b9aadc91f3bfe6ca607
parenta442b9d59c3f3cdb369a5a4420bef277574dae93
net: spider_net: do not read mac address again after setting it

This patch removes the spider_net_get_mac_address() call at the end of
the spider_net_set_mac() function. The dev->dev_addr is instead updated
with a memcpy() from sa->sa_data.

Since spider_net_get_mac_address() is not used anywhere else, this patch
also removes the function.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/toshiba/spider_net.c