From: Alison Schofield Date: Fri, 16 Oct 2015 18:46:29 +0000 (-0700) Subject: staging: r8723au: replace NULL and zero comparison tests with ! operator X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2f31c4b4188933e812b66f5e78d4cb0be9d5f3d2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: r8723au: replace NULL and zero comparison tests with ! operator Replace explicit NULL comparison and zero comparison test with ! operator to simplify code. Signed-off-by: Alison Schofield Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723au/core/rtw_ap.c b/drivers/staging/rtl8723au/core/rtw_ap.c index a7c8b7315122..a0b68451abf0 100644 --- a/drivers/staging/rtl8723au/core/rtw_ap.c +++ b/drivers/staging/rtl8723au/core/rtw_ap.c @@ -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 */