]> git.karo-electronics.de Git - linux-beck.git/commit
Staging: rtl8192u: Replace random_ether_addr with eth_random_addr
authorBhumika Goyal <bhumirks@gmail.com>
Tue, 1 Mar 2016 19:44:57 +0000 (01:14 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
commit0834ffac90526418fbcd877758840e811da817d2
tree2ce3f52e4bb0fa5beecb2edbce806f4e200681c3
parentf80c1d57637800f3da8eece0859d1e942a119ea8
Staging: rtl8192u: 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.
Remove the wrapper function ieee80211_randomize_cell and replace its
call with eth_random_addr as it is wrapping random_ether_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>
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c