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 <amsfield22@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Alison Schofield 2015-10-16 11:46:29 -07:00 committed by Greg Kroah-Hartman
parent 258e7af295
commit 2f31c4b418

View 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 */