mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-06 13:23:18 +00:00
staging: rtl8712: Fix multiple line dereference
This patch fixes the following warning in rtl871x_mlme.c WARNING: Avoid multiple line dereference - prefer 'adapter->securitypriv.PrivacyAlgrthm' Signed-off-by: Shibo Li <zzutcyha@163.com> Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> AW-NU120 Reviewed-by: Dan Carpenter <error27@gmail.com> Link: https://lore.kernel.org/r/20230220084050.18459-1-zzutcyha@163.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d1c1ace35e
commit
dd680522f6
@ -773,8 +773,8 @@ void r8712_joinbss_event_callback(struct _adapter *adapter, u8 *pbuf)
|
||||
adapter->securitypriv.busetkipkey = false;
|
||||
adapter->securitypriv.bgrpkey_handshake = false;
|
||||
ptarget_sta->ieee8021x_blocked = true;
|
||||
ptarget_sta->XPrivacy = adapter->
|
||||
securitypriv.PrivacyAlgrthm;
|
||||
ptarget_sta->XPrivacy =
|
||||
adapter->securitypriv.PrivacyAlgrthm;
|
||||
memset((u8 *)&ptarget_sta->x_UncstKey,
|
||||
0,
|
||||
sizeof(union Keytype));
|
||||
|
Loading…
Reference in New Issue
Block a user