From patchwork Wed May 8 14:32:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Barsanti X-Patchwork-Id: 3087 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id BFDBC3F1CF for ; Wed, 8 May 2024 16:33:41 +0200 (CEST) Received: by mail-lj1-f197.google.com with SMTP id 38308e7fff4ca-2e1e7954970sf39447161fa.2 for ; Wed, 08 May 2024 07:33:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715178821; cv=pass; d=google.com; s=arc-20160816; b=VC0ay1Dxl6jwAcAmhCuuexhq5htHsz2+oYeF9loneaDtEfgWBqnBYUBXaEdCVsUdeD /3k/AvFHV7K2GeL7R6zkCL1VBccUAc3Rlnfvut6+2sKhBQPmCp53zZ6/IDnSL42K+nfo ETu16VoLEpLwE57VBZdw1yTUOiebvyp+QzOPBk+giC2SR6bNc/faeTh6U3foX7wKy8lw WhnOBulVesSuQcdLboiNLcNRL16rGhN0O6r+wuTUITZZSPdVcxPC3xe3JiyKwk0/SABg 7pDWt3fqDCbhEuO6xRVmCgg3qUMeD6aL7JXvdCm/L/mjetwLmXCU2/qpxPeg91J9Sp/Z CkEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=JxqLP9dSj/uzJPyVqOAoYVOx11djz/zDbHbVSKmAvOQ=; fh=S3+ESVWYHH0v04nmNHj3dZAFmnmtoci4IgrxTx2GW9U=; b=VOa3Y0dvT8xQQSaJSomuF1uQicoJSIBDcHn1ztrTyGhGE+axBfYCKuWhjSFhE3hWMR us+xlvGtVogeQqZX4WUJS9GD8KHeWpIAxRgrPqiDp6pbi85YQLK9OGZ0y500zpc0AzX2 dxxguUZl/knYyNgbbjavZOgTITWYEL1uDCe9o/XgksJAmV42Bt0qzOcbq9GaU+GznJ8B q3jCNhRGrh56MlmvHKtUyxVCdY+o3phjuhWM0mhXy/RWTzd8jJkI2gCND7+NCNg4ulqI GfumZpwNils+Wxln4uMaO/zrVoL/4fP7z01qgYIlt1qz5CA7F0avKTFR07LJbumWRhoL CdMA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Wg5wBrNa; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1715178821; x=1715783621; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=JxqLP9dSj/uzJPyVqOAoYVOx11djz/zDbHbVSKmAvOQ=; b=LaOOI3l0g/srE5lk4AF/xOjFsMQTTO7W+nItSH+EY2DCKU2ChwAKHOtDXzD4GWDbgi 7m67002YKwswtwp/lCfwkeYUDcyBJFrXUg0NDyvAK6f9WTPQdND6dJUogajdS0vODn+G wvc0rxk2SucB7NOA2qpTYxVp5MRUC7LQKNgAw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715178821; x=1715783621; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=JxqLP9dSj/uzJPyVqOAoYVOx11djz/zDbHbVSKmAvOQ=; b=f3GExT7PNZOhdh14YXsBeYzfuvvFdxuCPDfwfRcNrjALv9B1rt7u+Lsz6qPNNPeVQX QM2nBRB+E5c1+yZggf4tgGRuwG0/+Q+4TM+X/0lQhkuwt0mONmuYmOWJsz4Z8ISMvWxg fbYHLHgxvcl2UnJzFZ+xQ7OnzJw37NB0xRqNcYGwi32WhlpLWmIsoOUBUf7PGr+GQF2t g6IegGjJYj5lCYQZyrAwHFQA3OVeSiJ0YqCQa+WUW5cgTiG315nn5TNs3HCBMuJqfvzZ UwLrrB6+8Ky5RHez32LRGzfuFXzOEa/jrSNX15zoOkZJIVLQF241//FeutiOaePp1g4f P3ug== X-Forwarded-Encrypted: i=2; AJvYcCWux1pbvg9kbE/hnOi4niripJ2l9QZyzuosuWqUrTgrZej2ROpTAkstHcKhhM9oiGj3HKywGu0ho30zKGjgvWWRPgGPhqT0tef5EO7Cx2AJY97gsX7H5jodI6rGJg== X-Gm-Message-State: AOJu0Yzk5o0fxzfCr/Kdxllj6Huo7ANTdJxURsVfv5Qo0D8ucea90jZK aOh+jVdODIJty1GcFNwkLhbrEKEtsGFR6v08ojr3mGsD+bb3KfVPGWiAW61862V0QA== X-Google-Smtp-Source: AGHT+IHlBFSRHeNxJckzFOr7tkb/uHqbhOEDEeLRPhM/ZfS2CRUkaoY39YJyqtA/FSQeJi0dZ3gWHg== X-Received: by 2002:a2e:8049:0:b0:2e2:9416:a659 with SMTP id 38308e7fff4ca-2e446079443mr23524481fa.0.1715178820744; Wed, 08 May 2024 07:33:40 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a2e:95da:0:b0:2e1:e370:18c9 with SMTP id 38308e7fff4ca-2e1e3701a93ls13850411fa.2.-pod-prod-05-eu; Wed, 08 May 2024 07:33:39 -0700 (PDT) X-Received: by 2002:a2e:a7d3:0:b0:2e0:3ad2:b371 with SMTP id 38308e7fff4ca-2e44708445cmr27890041fa.25.1715178818838; Wed, 08 May 2024 07:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715178818; cv=none; d=google.com; s=arc-20160816; b=aXasEipzuIUi3UUVooG1iqMHN1zd8tftFeBUUmgNO2CHtvbPfaC7J0waafJ5vX/zZH YgPtbsqpJAcES/bGAN13iXZOVqgFjlem8/87Y3lU+crwwT2qDAIHaiVrZHZUKyM1mj4e 0K+iF0EozaKCfctWFVp8HBYv/rpfNj1Q0dEWKTf6KeJYMP5IJjBMyOJIwuwoAlzfNhoU YotXQRXjFenYPT4/VHqe+816BGMSzvDgiWUkB+/bi1VBNosxgbM0wwzAOcMJrMPfnDMF lO18cKF85eq0XtaWdAkuhYAD92a8ho1eF6SFv2k04K1Rub6ELr8ftU3psRB6OZVMy8JB AWwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=6ocq7NFNngnSg3y/SDlvfLCCgW7RkJs5dBMjdfV8+hE=; fh=ZABRZAnkn1H9VfaqQFaJmtPDl039/I6NAxLO2GEzP0Q=; b=BoO2Dla95EPnhwY2ruENQyJfOcr1O5vjynUb6trRkpCyl8RYzHdmga3Beqe8/vl7f2 t6sHMRaEXJJ5c1R/W1n5298Lly/7FEA2nIyvn41fQtqpnt7PVED0h3h9xxlbMoPm9+gC P7EzCXajnqSKOFgx35kyw6AIAJ9PZnSkwcZX59X2o6sEtvhHrXSfXR+2/DDXXgm1Qbg3 OqcoPQNvRRGa34bwzWtrdYQYTWS0FySnO6jQ1ox6VIVk4oOavHdCBtTMqS2imZVHEpMZ 0JJ9mpejO0OELIBWSsozCiW3QbrS2y3HKRKtV/8NGKaCV14l1e9+S2DPJyMmbfEu2Tcn 679Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Wg5wBrNa; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 10-20020a2e0d0a000000b002e3c9891dd4sor1132500ljn.3.2024.05.08.07.33.38 for (Google Transport Security); Wed, 08 May 2024 07:33:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:651c:10c4:b0:2de:ca7f:c849 with SMTP id 38308e7fff4ca-2e4476b8097mr23077251fa.43.1715178818116; Wed, 08 May 2024 07:33:38 -0700 (PDT) Received: from thinkpad.ipgroup.local (212-57-59-66.xdsl.deanconnect.nl. [212.57.59.66]) by smtp.gmail.com with ESMTPSA id xh9-20020a170906da8900b00a597ff2fc0dsm7085256ejb.69.2024.05.08.07.33.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 07:33:37 -0700 (PDT) From: Patrick Barsanti To: linux-amarula@amarulasolutions.com Cc: Patrick Barsanti Subject: [PATCH] staging: rtl8712: Remove multiple line dereference Date: Wed, 8 May 2024 16:32:39 +0200 Message-Id: <20240508143238.13361-1-patrick.barsanti@amarulasolutions.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Original-Sender: patrick.barsanti@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Wg5wBrNa; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Remove multiple line dereference in `rtl871x_cmd.c` to remove checkpatch.pl warning. Signed-off-by: Patrick Barsanti --- 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); }