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:
parent
258e7af295
commit
2f31c4b418
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue