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)
commit0f6a670116921eae11b81f1760e2fff1148712de
treeec4215edfef019a8eae82b9aadc91f3bfe6ca607
parent3a67c9ccad926a168d8b7891537a452018368a5b
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