Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: gdm724x: Replace random_ether_addr with eth_random_addr

The macro random_ether_addr is calling the function eth_random_addr.
Therefore, the call to random_ether_addr can be replaced with
eth_random_addr.
Done using coccinelle:

@@
expression addr;
@@
- random_ether_addr(addr);
+ eth_random_addr(addr);

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Bhumika Goyal and committed by
Greg Kroah-Hartman
4e4acff7 6c6baa84

+1 -1
+1 -1
drivers/staging/gdm724x/gdm_lte.c
··· 855 855 /* Create random nic src and copy the first 856 856 * 3 bytes to be the same as dev_addr 857 857 */ 858 - random_ether_addr(nic_src); 858 + eth_random_addr(nic_src); 859 859 memcpy(nic_src, dev_addr, 3); 860 860 861 861 /* Copy the nic_dest from dev_addr*/