staging:rtl8192u: Remove macro cpMacAddr - Style
authorJohn Whitmore <johnfwhitmore@gmail.com>
Wed, 8 Aug 2018 21:00:23 +0000 (22:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Aug 2018 17:17:07 +0000 (19:17 +0200)
commitace3c2a23cf8170ba5d5db45d8150f9d15773fb8
tree768c697301bad33865c5184bb219c95867279ee0
parent9391bea9ad4e7d4b3ad5748c080061bafcb1693f
staging:rtl8192u: Remove macro cpMacAddr - Style

The macro cpMacAddr implements the same functionality as the
ether_addr_copy function defined in etherdevice.h, as a result the
macro has been removed from the code, and its use replaced with the
function call.

Note that the header comment of the function ether_addr_copy states
that the two byte arrays passed as parameters to the function must
be u16 aligned. Because of this the structure ieee80211_network has
had its member variables re-ordered so that the members bssid and
MBssid are aligned to a u16 boundary.

This is a coding style change which should have no impact on runtime
code execution.

Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: John Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/dot11d.h
drivers/staging/rtl8192u/ieee80211/ieee80211.h
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c