staging: r8723au: replace NULL and zero comparison tests with ! operator
authorAlison Schofield <amsfield22@gmail.com>
Fri, 16 Oct 2015 18:46:29 +0000 (11:46 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 06:06:38 +0000 (23:06 -0700)
Replace explicit NULL comparison and zero comparison test with ! operator
to simplify code.

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 a7c8b7315122378de0d12bdc9ad5ba6ffdcc9ebd..a0b68451abf078fd6f84596d9a7a1036b57ed403 100644 (file)
@@ -919,8 +919,8 @@ int rtw_check_beacon_data23a(struct rtw_adapter *padapter,
                        break;
                }
 
-               if ((p == NULL) || (ie_len == 0))
-                               break;
+               if (!p || !ie_len)
+                       break;
        }
 
        /* wmm */