diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2016-03-02 01:13:22 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-05 14:48:04 -0800 |
commit | 4e4acff7346e87f9d1282b1828198bcb5a6db8bf (patch) | |
tree | a85dc1a4f7cce40b2fe465b63c81943d79e66f0f /drivers/staging/gdm724x | |
parent | 6c6baa841662e1ab46353fee3c618d9f347ce06e (diff) | |
download | linux-stable-4e4acff7346e87f9d1282b1828198bcb5a6db8bf.tar.gz linux-stable-4e4acff7346e87f9d1282b1828198bcb5a6db8bf.tar.bz2 linux-stable-4e4acff7346e87f9d1282b1828198bcb5a6db8bf.zip |
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>
Diffstat (limited to 'drivers/staging/gdm724x')
-rw-r--r-- | drivers/staging/gdm724x/gdm_lte.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/gdm724x/gdm_lte.c b/drivers/staging/gdm724x/gdm_lte.c index 98570c61d4de..bb552193e4ba 100644 --- a/drivers/staging/gdm724x/gdm_lte.c +++ b/drivers/staging/gdm724x/gdm_lte.c @@ -855,7 +855,7 @@ static void form_mac_address(u8 *dev_addr, u8 *nic_src, u8 *nic_dest, /* Create random nic src and copy the first * 3 bytes to be the same as dev_addr */ - random_ether_addr(nic_src); + eth_random_addr(nic_src); memcpy(nic_src, dev_addr, 3); /* Copy the nic_dest from dev_addr*/ |