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-Tag: v4.14-rc1~4420^2~524 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f31c4b4188933e812b66f5e78d4cb0be9d5f3d2;p=platform%2Fkernel%2Flinux-rpi.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 a7c8b73..a0b6845 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 */