Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4091884rwe; Tue, 30 Aug 2022 04:38:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ixasx6d96JZTm63pNWe/4TAEh4kCLrJvLGjrx57zM4gv5PCgKL77MAJtJ4hne79oj3xic X-Received: by 2002:a17:90b:3e81:b0:1fd:8357:cbc8 with SMTP id rj1-20020a17090b3e8100b001fd8357cbc8mr17837104pjb.48.1661859527735; Tue, 30 Aug 2022 04:38:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661859527; cv=none; d=google.com; s=arc-20160816; b=g2jhb6/27Aknuf1Rs1aa7WyMgiQ/bXHRw8PGXirzyyfUO9oxjM0CjSA0s1Mp7X5Rpa LWY9ihehPIivPQ6SCwSDm0YDRnXAC/Woqq6+h/uiR7ClCWoccaNZ7Mvir+3XPQKJxeQH 9y8A13lgSGrL1FDDOMJAos1TdYARcDUNeFtoy9uP9N85MSuaBaPwl2nIm4VRkne+Btc8 9lLv8Ab4p/cWAlIp5VK1UeFQHC070upGcdO2OvO9SHuMIuz8LfSluofVsykETDW2js+z EHXZ6aNg/OGqle24ojeAHUKenyFSiUr30/XDvK8aPFQdURhj3mpexnGE7DC44a/x2653 7n+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=t+R/8H1+D6PkifBzEZLGo3obwCZRygBKpW0t5nLQzgI=; b=jqwwashqGWisiLSJk7AAcrfWX56xwTabOzgBSAFFPbTxGSrGb0Wd2zcgXdM7d44XCV vk7MBegbnzT1+xkP6QEPrW6Eqczn/zeCJ7NzQr4kKiQ3n9V4tVSEznpn/zzBzZwUifMe QmUZQk8Q+AC2iNaDBAzJUmocT9MDhrFTyITNKZwJdRUnG6bovhHQrEmD8UOnFeKtaVvD LY6oHMrllaFBhhP4CY1BHkJ6GRZWYkDOInnQH8y73Jo6GVOksaUVJCWxIiVv5pVJtCjf 91Y3Xg2K38NS6ynbLDQOpL2aYJJXMTcYR6Vj9KUC5x/HcHWXuV0Zhq1TWvB2Oa0EEEbx AfJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="WB19/tzL"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w129-20020a623087000000b00537d0204192si524986pfw.98.2022.08.30.04.38.34; Tue, 30 Aug 2022 04:38:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="WB19/tzL"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230492AbiH3Lhv (ORCPT + 64 others); Tue, 30 Aug 2022 07:37:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230332AbiH3Lhc (ORCPT ); Tue, 30 Aug 2022 07:37:32 -0400 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F182BF5CE2; Tue, 30 Aug 2022 04:36:03 -0700 (PDT) Received: by mail-qk1-x734.google.com with SMTP id a10so4315650qkl.13; Tue, 30 Aug 2022 04:36:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=t+R/8H1+D6PkifBzEZLGo3obwCZRygBKpW0t5nLQzgI=; b=WB19/tzLCc9OYHyYBrBBW0BeoEBlCigT8+6ePSd9j9yQkl6FwAyJAxc6zlSluGXIZR FltdZpyyGxcJR/1nAnsUPbPV9bhcQkoB/ooh5vEc8QCyi/0TW2ZkFKtv9i6mRyhcn2sQ 1gScXFtNKPfHkM6PTPi8/UH/tC862rvGXFc6Xvn65EyxgB+5HsZY67VStr7McHHZRtFO hksVsu4Tu0r/sMU9QxJzIhIWFRl7YW9TXeqhFy9K9I+LpmwIFNus1K2E9QzdifNuOEDB BZrtHTavMetSrRhMk7KC7oP8AaOPVWY+qjwNlPyON/i2USQwGzdgD4BNqJxnQlE/K/KT GLyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=t+R/8H1+D6PkifBzEZLGo3obwCZRygBKpW0t5nLQzgI=; b=rLsoz5SzbRKVFtq2C+MTYvvUgVLqH6a4h1wRRLDDuWnbQH/jj1ck2neY7ex/xWm9H8 EdADuzqGcjfIMSm9ByqPFgiFH1lmDDTauFIDr1OIAjWoAdItiNlRT2k2/HB6Q+0twDSm e7q66eDhntTsEQt4O03N3rkA88+zrSWhX1Pxhri0C2Uu1+K2gf2/QoSQ5i6EEf7K96dy yUvQ3QvaNGw9Z2rpYgsHPNQvD/HssRX/PohLZuJXuj9ft1sq3/APltKl2hd04T77HX9j HFLsg8SQ5wAuPYKOFmYBQ+aWHd6YXsR0Fl23HvLhVyBlwfzJ2ftYVJMpvNjJAXu6EzSh oBgA== X-Gm-Message-State: ACgBeo0A2DrLJ96sR2O8VuWMYGKkTV09Ozcoi2LeMbXnytZZGTmJfo9s jP3Cqx2AKbHRZOrQV1zapQo= X-Received: by 2002:a05:620a:68f:b0:6be:5a7c:d61a with SMTP id f15-20020a05620a068f00b006be5a7cd61amr11542266qkh.519.1661859308921; Tue, 30 Aug 2022 04:35:08 -0700 (PDT) Received: from [10.176.68.61] ([192.19.148.250]) by smtp.gmail.com with ESMTPSA id bs43-20020a05620a472b00b006bb619a6a85sm8102429qkb.48.2022.08.30.04.35.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Aug 2022 04:35:08 -0700 (PDT) Message-ID: <72139841-f5ba-6fb8-8268-f59cee0a2bc2@gmail.com> Date: Tue, 30 Aug 2022 13:35:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v2 linux-next] wifi: brcmfmac: remove redundant err variable Content-Language: en-US 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 References: <20220830105016.287337-1-cui.jinpeng2@zte.com.cn> From: Arend Van Spriel In-Reply-To: <20220830105016.287337-1-cui.jinpeng2@zte.com.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 8/30/2022 12:50 PM, cgel.zte@gmail.com wrote: > From: Jinpeng Cui > > 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 Acked-by: Arend van Spriel > Signed-off-by: Jinpeng Cui > --- > .../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