Commit dd680522 authored by Shibo Li's avatar Shibo Li Committed by Greg Kroah-Hartman

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: default avatarShibo Li <zzutcyha@163.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> AW-NU120
Reviewed-by: default avatarDan Carpenter <error27@gmail.com>
Link: https://lore.kernel.org/r/20230220084050.18459-1-zzutcyha@163.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d1c1ace3
...@@ -773,8 +773,8 @@ void r8712_joinbss_event_callback(struct _adapter *adapter, u8 *pbuf) ...@@ -773,8 +773,8 @@ void r8712_joinbss_event_callback(struct _adapter *adapter, u8 *pbuf)
adapter->securitypriv.busetkipkey = false; adapter->securitypriv.busetkipkey = false;
adapter->securitypriv.bgrpkey_handshake = false; adapter->securitypriv.bgrpkey_handshake = false;
ptarget_sta->ieee8021x_blocked = true; ptarget_sta->ieee8021x_blocked = true;
ptarget_sta->XPrivacy = adapter-> ptarget_sta->XPrivacy =
securitypriv.PrivacyAlgrthm; adapter->securitypriv.PrivacyAlgrthm;
memset((u8 *)&ptarget_sta->x_UncstKey, memset((u8 *)&ptarget_sta->x_UncstKey,
0, 0,
sizeof(union Keytype)); sizeof(union Keytype));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment