Commit 1524b01f authored by Moon Yeounsu's avatar Moon Yeounsu Committed by Greg Kroah-Hartman

staging: rtl8712: style fix multiple line dereference

It fix the following checkpatch.pl warning:
Avoid multiple line dereference - prefer %s
Suggested-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: default avatarMoon Yeounsu <yyyynoom@gmail.com>
Link: https://lore.kernel.org/r/20240721040504.1483-1-yyyynoom@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d43c918b
......@@ -528,8 +528,9 @@ void r8712_setstakey_cmd(struct _adapter *padapter, u8 *psta, u8 unicast_key)
if (unicast_key)
memcpy(&psetstakey_para->key, &sta->x_UncstKey, 16);
else
memcpy(&psetstakey_para->key, &psecuritypriv->XGrpKey[psecuritypriv->XGrpKeyid - 1].
skey, 16);
memcpy(&psetstakey_para->key,
&psecuritypriv->XGrpKey[psecuritypriv->XGrpKeyid - 1].skey,
16);
r8712_enqueue_cmd(pcmdpriv, ph2c);
}
......
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