staging: r8723au: replace explicit NULL comparisons with !
authorAlison Schofield <amsfield22@gmail.com>
Sat, 24 Oct 2015 04:32:20 +0000 (21:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:45:43 +0000 (19:45 -0700)
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: Alison Schofield <amsfield22@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_ap.c

index a8463064b06f8e3e06a63e297734366c97c04972..0086d5a2f92bd381bcf122febcaf463c5c13ff72 100644 (file)
@@ -658,10 +658,10 @@ static void start_bss_network(struct rtw_adapter *padapter, u8 *pbuf)
         * and at first time the security
         * ie (RSN/WPA IE) will not include in beacon
         */
-       if (NULL == cfg80211_find_vendor_ie(WLAN_OUI_MICROSOFT,
-                                           WLAN_OUI_TYPE_MICROSOFT_WPS,
-                                           pnetwork->IEs,
-                                           pnetwork->IELength))
+       if (!cfg80211_find_vendor_ie(WLAN_OUI_MICROSOFT,
+                                    WLAN_OUI_TYPE_MICROSOFT_WPS,
+                                    pnetwork->IEs,
+                                    pnetwork->IELength))
                pmlmeext->bstart_bss = true;
 
        /* todo: update wmm, ht cap */