mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
staging: rtl8723bs: core: Change NULL comparison to Boolean negation
Change NULL comparison to Boolean negation. Issue found with Coccinelle using matchnull.cocci. Signed-off-by: Nishka Dasgupta <nishka.dasgupta@yahoo.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a752d01c3d
commit
8cf0466a2d
1 changed files with 2 additions and 6 deletions
|
|
@ -782,12 +782,8 @@ void start_bss_network(struct adapter *padapter, u8 *pbuf)
|
|||
/* check if there is wps ie, */
|
||||
/* if there is wpsie in beacon, the hostapd will update beacon twice when stating hostapd, */
|
||||
/* and at first time the security ie (RSN/WPA IE) will not include in beacon. */
|
||||
if (NULL == rtw_get_wps_ie(
|
||||
pnetwork->IEs+_FIXED_IE_LENGTH_,
|
||||
pnetwork->IELength-_FIXED_IE_LENGTH_,
|
||||
NULL,
|
||||
NULL
|
||||
))
|
||||
if (!rtw_get_wps_ie(pnetwork->IEs+_FIXED_IE_LENGTH_,
|
||||
pnetwork->IELength-_FIXED_IE_LENGTH_, NULL, NULL))
|
||||
pmlmeext->bstart_bss = true;
|
||||
|
||||
/* todo: update wmm, ht cap */
|
||||
|
|
|
|||
Loading…
Reference in a new issue