]> git.baikalelectronics.ru Git - kernel.git/commit
net: systemport: Use eth_hw_addr_random
authorVaishali Thakkar <vthakkar1994@gmail.com>
Wed, 8 Jul 2015 05:19:30 +0000 (10:49 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jul 2015 21:51:15 +0000 (14:51 -0700)
commitdfd4cac60b3758ca44241c7237fca034f8161c1c
tree077b78dd94078882951e843c5cae593e93d2b773
parent7c7b548ae6188841a16d42dee24e3901a06de67a
net: systemport: Use eth_hw_addr_random

Use eth_hw_addr_random() instead of calling random_ether_addr().
Here, this change is setting addr_assign_type to NET_ADDR_RANDOM.

The Coccinelle semantic patch that performs this transformation
is as follows:

@@
identifier a,b;
@@

-random_ether_addr(a->b);
+eth_hw_addr_random(a);

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c