OSDN Git Service

net: drivers/net: Convert random_ether_addr to eth_random_addr
authorJoe Perches <joe@perches.com>
Fri, 22 Jun 2018 17:51:00 +0000 (10:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Jun 2018 01:49:14 +0000 (10:49 +0900)
commit6c1f0a1ffb7c2b0501521b9fc1f53b4109f1791b
tree681b06d46c984ad460150cb9ac4011e8b58c686e
parentd55207e37a35f811e1d93ae83d4dcaaaecde053d
net: drivers/net: Convert random_ether_addr to eth_random_addr

random_ether_addr is a #define for eth_random_addr which is
generally preferred in kernel code by ~3:1

Convert the uses of random_ether_addr to enable removing the #define

Miscellanea:

o Convert &vfmac[0] to equivalent vfmac and avoid unnecessary line wrap

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
14 files changed:
drivers/net/ethernet/cavium/liquidio/lio_main.c
drivers/net/ethernet/cortina/gemini.c
drivers/net/ethernet/hisilicon/hip04_eth.c
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/microchip/lan743x_main.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c
drivers/net/ethernet/sfc/ef10_sriov.c
drivers/net/ethernet/ti/cpsw.c
drivers/net/ethernet/ti/netcp_core.c
drivers/net/ntb_netdev.c
drivers/net/usb/lan78xx.c
drivers/net/wireless/ath/ath9k/hw.c
net/batman-adv/bridge_loop_avoidance.c