From: Arend Van Spriel <aspriel@gmail.com>
To: cgel.zte@gmail.com, franky.lin@broadcom.com,
hante.meuleman@broadcom.com, kvalo@kernel.org,
davem@davemloft.net, edumazet@google.com
Cc: kuba@kernel.org, pabeni@redhat.com, johannes.berg@intel.com,
alsi@bang-olufsen.dk, a.fatoum@pengutronix.de,
loic.poulain@linaro.org, quic_vjakkam@quicinc.com,
prestwoj@gmail.com, colin.i.king@gmail.com, hdegoede@redhat.com,
smoch@web.de, cui.jinpeng2@zte.com.cn,
linux-wireless@vger.kernel.org,
brcm80211-dev-list.pdl@broadcom.com,
SHA-cyfmac-dev-list@infineon.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, Zeal Robot <zealci@zte.com.cn>
Subject: Re: [PATCH v2 linux-next] wifi: brcmfmac: remove redundant err variable
Date: Tue, 30 Aug 2022 13:35:04 +0200 [thread overview]
Message-ID: <72139841-f5ba-6fb8-8268-f59cee0a2bc2@gmail.com> (raw)
In-Reply-To: <20220830105016.287337-1-cui.jinpeng2@zte.com.cn>
On 8/30/2022 12:50 PM, cgel.zte@gmail.com wrote:
> From: Jinpeng Cui <cui.jinpeng2@zte.com.cn>
>
> Return value from brcmf_fil_iovar_data_set() and
> brcmf_config_ap_mgmt_ie() directly instead of
> taking this in another redundant variable.
>
> Reported-by: Zeal Robot <zealci@zte.com.cn>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
> Signed-off-by: Jinpeng Cui <cui.jinpeng2@zte.com.cn>
> ---
> .../wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 10 ++--------
> 1 file changed, 2 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
> index 7c72ea26a7d7..8a8c5a3bb2fb 100644
> --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
> +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
[...]
> @@ -3997,10 +3996,8 @@ brcmf_update_pmklist(struct brcmf_cfg80211_info *cfg, struct brcmf_if *ifp)
> for (i = 0; i < npmk; i++)
> brcmf_dbg(CONN, "PMK[%d]: %pM\n", i, &pmk_list->pmk[i].bssid);
>
> - err = brcmf_fil_iovar_data_set(ifp, "pmkid_info", pmk_list,
> + return brcmf_fil_iovar_data_set(ifp, "pmkid_info", pmk_list,
> sizeof(*pmk_list));
You should align the next line on the column after the opening brace.
Using the checkpatch script should report this.
> -
> - return err;
> }
>
> static s32
prev parent reply other threads:[~2022-08-30 11:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-30 10:50 [PATCH v2 linux-next] wifi: brcmfmac: remove redundant err variable cgel.zte
2022-08-30 11:35 ` Arend Van Spriel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=72139841-f5ba-6fb8-8268-f59cee0a2bc2@gmail.com \
--to=aspriel@gmail.com \
--cc=SHA-cyfmac-dev-list@infineon.com \
--cc=a.fatoum@pengutronix.de \
--cc=alsi@bang-olufsen.dk \
--cc=brcm80211-dev-list.pdl@broadcom.com \
--cc=cgel.zte@gmail.com \
--cc=colin.i.king@gmail.com \
--cc=cui.jinpeng2@zte.com.cn \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=franky.lin@broadcom.com \
--cc=hante.meuleman@broadcom.com \
--cc=hdegoede@redhat.com \
--cc=johannes.berg@intel.com \
--cc=kuba@kernel.org \
--cc=kvalo@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=loic.poulain@linaro.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=prestwoj@gmail.com \
--cc=quic_vjakkam@quicinc.com \
--cc=smoch@web.de \
--cc=zealci@zte.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).