staging: rtl8188eu: use is_broadcast_ether_addr
authorMichael Straube <straube.linux@gmail.com>
Tue, 31 Jul 2018 11:34:09 +0000 (13:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Aug 2018 07:44:27 +0000 (09:44 +0200)
commit8663b2e02c1b5d5767ebaa38f72128658b6da1e9
treea97140b74194a795937ed28143259822b45c9e50
parent328cf8e7790c852fc887ce067e53900f2c423afa
staging: rtl8188eu: use is_broadcast_ether_addr

Use is_broadcast_ether_addr instead of checking each byte of the
address array for 0xff. Shortens the code and improves readability.

As required by is_broadcast_ether_addr, the address array sta_addr
is properly aligned in all uses. Thanks to Joe Perches.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c