Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2440455rwb; Sun, 6 Aug 2023 18:55:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHmZT3a3wXOlAU2QXkoD2rv6uxtYqRLYRcaZMsx9PF5LBhsY07+Z09mB1if/7pX5M4U9HxB X-Received: by 2002:a05:6a20:258b:b0:13e:e3aa:d871 with SMTP id k11-20020a056a20258b00b0013ee3aad871mr10707090pzd.53.1691373325921; Sun, 06 Aug 2023 18:55:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691373325; cv=none; d=google.com; s=arc-20160816; b=V0zzF4dfBHo14uH7O4NzMqLlWVSZlmQ3wXYyxp/F5vLCm1TK9B0A1FxJrWPdC3Aal9 8Z4fXSMe07i2U8V++1YifxOV0/NmXKQVdi6AjtykKpKxnfWSkr+lCcmEdfiBFgeCpOfU jz9aANw+7QAssEYKMx05O8mI4T3Sl/PQYwbOzK7FhARKWMlCdf3QtDt4oGFxU0hk7m4A o5h70UPqSJy0eqjIy7ZNthhAkV4UUTOOuLCOfE+iby1yN7mjUGHuOjpk14W9I2WXFBPi LC3ay9uJR0er7wBs3jYUJzSq7zfnAMWSgbDDGgSYEkpqq1z1C7OrgiYoHXzbjvdKw/zV W6cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:authenticated-by; bh=58D5CKrIc13S8QUxASjdMZxSz+hgNPicQyqULs7atkc=; fh=uz7MiSJGc5cuF2sjOIxjDJUBT+wTZwENfah4LPkd3Pg=; b=lEDChado3zk+U5ifm21SPD5oTLEKSDRZibj5hegNH65NO2p+v6w6P5gQXnSpU4RVQT XW1CpMDfmYTCsaTYkFFIXHAhZRZUKD6VDF+YbaAsrphCJliuV1Ef0FUxoWXLInBwe98D B0nfd5/824WjYkhE0QuSqFm1FFSkGKrU1jBgz7zGWwX1lkR/kiHkVWzGsaO/1dbB/244 vk1FMxiKX2o29IZrgVc21FltNI7PpYc6KHDPL72pI5M7wETkr+0+JOrFONS5NT2DA3fs xEt1pKtzBzwc07pw7ISgjE6VVyx2sXDeKDAMDuWGOiMUBmsqK4OQNQPP/dhoZT+tGDKR ehtA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u64-20020a638543000000b00563b7d87d83si4966527pgd.424.2023.08.06.18.55.18; Sun, 06 Aug 2023 18:55:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229558AbjHGBqA convert rfc822-to-8bit (ORCPT + 56 others); Sun, 6 Aug 2023 21:46:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbjHGBp7 (ORCPT ); Sun, 6 Aug 2023 21:45:59 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5DFFC19AF; Sun, 6 Aug 2023 18:45:39 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 3771hFiC5030517, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 3771hFiC5030517 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Mon, 7 Aug 2023 09:43:15 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Mon, 7 Aug 2023 09:42:43 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Mon, 7 Aug 2023 09:42:43 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d]) by RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d%5]) with mapi id 15.01.2375.007; Mon, 7 Aug 2023 09:42:43 +0800 From: Ping-Ke Shih To: Ruan Jinjie , "sgoutham@marvell.com" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "jesse.brandeburg@intel.com" , "anthony.l.nguyen@intel.com" , "tariqt@nvidia.com" , "s.shtylyov@omp.ru" , "aspriel@gmail.com" , "franky.lin@broadcom.com" , "hante.meuleman@broadcom.com" , "kvalo@kernel.org" , "richardcochran@gmail.com" , "yoshihiro.shimoda.uh@renesas.com" , "u.kleine-koenig@pengutronix.de" , "mkl@pengutronix.de" , "lee@kernel.org" , "set_pte_at@outlook.com" , "linux-arm-kernel@lists.infradead.org" , "netdev@vger.kernel.org" , "intel-wired-lan@lists.osuosl.org" , "linux-rdma@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org" , "linux-wireless@vger.kernel.org" , "brcm80211-dev-list.pdl@broadcom.com" , "SHA-cyfmac-dev-list@infineon.com" Subject: RE: [PATCH -next 6/6] brcm80211: Remove an unnecessary ternary operator Thread-Topic: [PATCH -next 6/6] brcm80211: Remove an unnecessary ternary operator Thread-Index: AQHZxodyLvV38Vq6lUarMSYN6WoMea/eE5fw Date: Mon, 7 Aug 2023 01:42:43 +0000 Message-ID: References: <20230804035346.2879318-1-ruanjinjie@huawei.com> <20230804035346.2879318-7-ruanjinjie@huawei.com> In-Reply-To: <20230804035346.2879318-7-ruanjinjie@huawei.com> Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.69.188] x-kse-serverinfo: RTEXMBS04.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 > -----Original Message----- > From: Ruan Jinjie > Sent: Friday, August 4, 2023 11:54 AM > To: sgoutham@marvell.com; davem@davemloft.net; edumazet@google.com; kuba@kernel.org; pabeni@redhat.com; > jesse.brandeburg@intel.com; anthony.l.nguyen@intel.com; tariqt@nvidia.com; s.shtylyov@omp.ru; > aspriel@gmail.com; franky.lin@broadcom.com; hante.meuleman@broadcom.com; kvalo@kernel.org; > richardcochran@gmail.com; yoshihiro.shimoda.uh@renesas.com; ruanjinjie@huawei.com; > u.kleine-koenig@pengutronix.de; mkl@pengutronix.de; lee@kernel.org; set_pte_at@outlook.com; > linux-arm-kernel@lists.infradead.org; netdev@vger.kernel.org; intel-wired-lan@lists.osuosl.org; > linux-rdma@vger.kernel.org; linux-renesas-soc@vger.kernel.org; linux-wireless@vger.kernel.org; > brcm80211-dev-list.pdl@broadcom.com; SHA-cyfmac-dev-list@infineon.com > Subject: [PATCH -next 6/6] brcm80211: Remove an unnecessary ternary operator > > There is a ternary operator, the true or false judgement of which > is unnecessary in C language semantics. > > Signed-off-by: Ruan Jinjie > --- > drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c > b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c > index 8580a2754789..8328b22829c5 100644 > --- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c > +++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c > @@ -27351,8 +27351,7 @@ static int wlc_phy_cal_rxiq_nphy_rev3(struct brcms_phy *pi, > > for (rx_core = 0; rx_core < pi->pubpi.phy_corenum; rx_core++) { > > - skip_rxiqcal = > - ((rxcore_state & (1 << rx_core)) == 0) ? true : false; > + skip_rxiqcal = (rxcore_state & (1 << rx_core)) == 0; skip_rxiqcal = !(rxcore_state & (1 << rx_core)); > > wlc_phy_rxcal_physetup_nphy(pi, rx_core); > > -- > 2.34.1 > > > ------Please consider the environment before printing this e-mail.