staging: rtl8188eu: Use is_{zero/broadcast}_ether_addr() instead of memcmp()
authorLiu Shixin <liushixin2@huawei.com>
Wed, 9 Jun 2021 08:56:49 +0000 (16:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jun 2021 12:27:41 +0000 (14:27 +0200)
commitfe5fcefc9130ce80cda024ab44c7353a67df5cb6
tree1874e67549db23d4f758f8c8f789c33cdd6939e0
parent5697686ed4eda64114b50e6e09d5c647d091b873
staging: rtl8188eu: Use is_{zero/broadcast}_ether_addr() instead of memcmp()

Simplify the code by using is_{zero/broadcast}_ether_addr() instead of
directly using memcmp() to determine if the ethernet address is all
zeros or broadcast address.

Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Link: https://lore.kernel.org/r/20210609085650.1269008-1-liushixin2@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_mlme.c
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
drivers/staging/rtl8188eu/core/rtw_recv.c
drivers/staging/rtl8188eu/hal/odm.c