Tag: adb3505086def6d3e37013ec6cf8313cc719cbb6

net: systemport: Use eth_hw_addr_random

Author: Vaishali Thakkar <vthakkar1994@gmail.com> 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 Tested-by: Florian Fainelli Reviewed-by: Florian Fainelli Signed-off-by: David S. Miller — drivers/net/ethernet/broadcom/bcmsysport.c | 2 +- 1 file …

Continue reading