ll_temac: fix mac address setting
authorJiri Pirko <jiri@resnulli.us>
Tue, 1 Jan 2013 03:30:19 +0000 (03:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Jan 2013 06:37:36 +0000 (22:37 -0800)
commit04e406dcc54cfd84d333ea673fa986fb5a1840e7
tree07a98d71770a7c61369df1600ec0977dffc8bc6c
parent646cbcdae50e9ef40d7b77673a1f1b7eb7c18be5
ll_temac: fix mac address setting

Previously, when invalid address was passed to ndo_set_mac_address,
random mac was generated and set. Fix this by returning -EADDRNOTAVAIL
in this situation.

Also polish the code around a bit.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/ll_temac_main.c