staging: rtl8712: Remove multiple line dereference

Message ID 20240508143238.13361-1-patrick.barsanti@amarulasolutions.com
State New
Headers show
Series
  • staging: rtl8712: Remove multiple line dereference
Related show

Commit Message

Patrick Barsanti May 8, 2024, 2:32 p.m. UTC
Remove multiple line dereference in `rtl871x_cmd.c` to remove
checkpatch.pl warning.

Signed-off-by: Patrick Barsanti <patrick.barsanti@amarulasolutions.com>
---
 drivers/staging/rtl8712/rtl871x_cmd.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Patch

diff --git a/drivers/staging/rtl8712/rtl871x_cmd.c b/drivers/staging/rtl8712/rtl871x_cmd.c
index bbd4a13c7bb9..ffeb91dd28c4 100644
--- a/drivers/staging/rtl8712/rtl871x_cmd.c
+++ b/drivers/staging/rtl8712/rtl871x_cmd.c
@@ -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);
 }