]> www.infradead.org Git - linux.git/commitdiff
staging: rtl8712: style fix multiple line dereference
authorMoon Yeounsu <yyyynoom@gmail.com>
Sun, 21 Jul 2024 04:05:04 +0000 (00:05 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Jul 2024 08:08:24 +0000 (10:08 +0200)
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>
Link: https://lore.kernel.org/r/20240721040504.1483-1-yyyynoom@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_cmd.c

index bbd4a13c7bb9d189d82b83f29493c126a7b0ef1b..ffeb91dd28c4385733fefa097b4ab91d096483d9 100644 (file)
@@ -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);
 }