Commit 48c9578c authored by Alison Schofield's avatar Alison Schofield Committed by Greg Kroah-Hartman

staging: r8723au: replace explicit NULL comparisons with !

Replace explicit NULL comparison with ! operator to simplify code.

Addresses checkpatch.pl:
WARNING: Comparisons should place the constant on the right side of the
test
Signed-off-by: default avatarAlison Schofield <amsfield22@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e9cd7afa
...@@ -658,10 +658,10 @@ static void start_bss_network(struct rtw_adapter *padapter, u8 *pbuf) ...@@ -658,10 +658,10 @@ static void start_bss_network(struct rtw_adapter *padapter, u8 *pbuf)
* and at first time the security * and at first time the security
* ie (RSN/WPA IE) will not include in beacon * ie (RSN/WPA IE) will not include in beacon
*/ */
if (NULL == cfg80211_find_vendor_ie(WLAN_OUI_MICROSOFT, if (!cfg80211_find_vendor_ie(WLAN_OUI_MICROSOFT,
WLAN_OUI_TYPE_MICROSOFT_WPS, WLAN_OUI_TYPE_MICROSOFT_WPS,
pnetwork->IEs, pnetwork->IEs,
pnetwork->IELength)) pnetwork->IELength))
pmlmeext->bstart_bss = true; pmlmeext->bstart_bss = true;
/* todo: update wmm, ht cap */ /* todo: update wmm, ht cap */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment