Linux kernel staging patches
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8712: style fix multiple line dereference
@ 2024-07-17 13:06 Moon Yeounsu
  2024-07-17 19:48 ` Philipp Hortmann
  0 siblings, 1 reply; 4+ messages in thread
From: Moon Yeounsu @ 2024-07-17 13:06 UTC (permalink / raw)
  To: gregkh, linux-staging; +Cc: Moon Yeounsu

It fix the following checkpatch.pl warning:
Avoid multiple line dereference - prefer %s

Signed-off-by: Moon Yeounsu <yyyynom@gmail.com>
---
 drivers/staging/rtl8712/rtl871x_cmd.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-07-18 13:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-17 13:06 [PATCH] staging: rtl8712: style fix multiple line dereference Moon Yeounsu
2024-07-17 19:48 ` Philipp Hortmann
2024-07-17 20:23   ` Dan Carpenter
2024-07-18 13:26     ` [PATCH v2] " Moon Yeounsu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox