Linux kernel staging patches
 help / color / mirror / Atom feed
* [PATCH v3] staging: rtl8712: style fix multiple line dereference
@ 2024-07-21  4:05 Cruzer-S
  2024-07-21  4:43 ` 문연수
  2024-07-23 15:22 ` Dan Carpenter
  0 siblings, 2 replies; 7+ messages in thread
From: Cruzer-S @ 2024-07-21  4:05 UTC (permalink / raw)
  To: gregkh; +Cc: linux-staging, philipp.g.hortmann, dan.carpenter, Moon Yeounsu

From: Moon Yeounsu <yyyynoom@gmail.com>

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

Suggested-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Moon Yeounsu <yyyynoom@gmail.com>
---
v2: Fix email address and checkpatch.pl warning
v3: Fix incorrect commit index, start with new thread for new version of patch,
	place notes below the cutoff line, provide appropriate CC,
	include 'Suggested-by' sign for those who gives good guideline.

 drivers/staging/rtl8712/rtl871x_cmd.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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);
 }
--
2.43.5


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

end of thread, other threads:[~2024-07-23 17:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-21  4:05 [PATCH v3] staging: rtl8712: style fix multiple line dereference Cruzer-S
2024-07-21  4:43 ` 문연수
2024-07-21  5:07   ` Nam Cao
2024-07-21  6:44     ` Moon Yeounsu
2024-07-23 15:22 ` Dan Carpenter
2024-07-23 16:02   ` Dan Carpenter
2024-07-23 17:34     ` Greg KH

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