Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3513257ybz; Mon, 4 May 2020 04:35:11 -0700 (PDT) X-Google-Smtp-Source: APiQypK9FuVcFZUN+pYNIyWSSl38fxS1te4me59vFMCxACUyrPAemRyf+EbRgjPHiYf5sa6kmCMW X-Received: by 2002:a50:ee0e:: with SMTP id g14mr14379018eds.34.1588592111393; Mon, 04 May 2020 04:35:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588592111; cv=none; d=google.com; s=arc-20160816; b=OEUTG/IPi21shX+iuUY7wYRZ198wKD0uzX/WAGZzlbXUzsaylCHU5NySjk6VVpn7QP DJjuCP1AbtjM20ucecDxDZ61g4GD51hdcASKZqOk23uely8dYm6BBz4IAo/Mpzx6QoTC LgUD8VMfpVy1tfW9Cz2hg+gKYWgBto7Q5vSI83PatGiH/eaTK2w0cznqPECmVjz2ZNn3 yK5Tw6Y/J+20mdRSWL/rLwbGSs/OQw3lywGnxB0FlOQLQz6eXL/y5Ot+pEvHKq1do3rX r4v6E4r/DSYEfZSS0WGRdg8Usbx1gC8Wt+UhJnJ4t68UZVdgUe1gl9F1RQZtujO9Grhb yQZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=uURXvMiGcEftGqdzEeRW7MokeojI1gX8HNGu8tcmToc=; b=y/ZGVfJg9J0X+AzSwMFXepNzdvkahEhNc9JOqgZApqXgWDRh3yE6voljASW/npaJvL rlOEiHN7or9xoJdo4SZ/7EDlvPeBslPwO+wWzWa5SZgiOryEV4PpcqQLgqLP/K4NLNBk rsL4v2vGlHcPdxiLAgZ9dd/0z9Xwm9LY7ZXY4eEcN4ymvIlXN0PvRQXAP5wxOCgHuM0P RMSy1lHud1gqFEletSwVxw0RQetJaAifAQx70DTSGG0r2Dy3+rDXisP3YIpiYBKfLbA0 0klLd5g/eyT9q6QxyqAiEAENik1vu0hdNXX5O3Bl+698IX0WfPe+CetC7Fr/dvwa4vnt 5YhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c22si6762327eja.230.2020.05.04.04.34.35; Mon, 04 May 2020 04:35:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728664AbgEDLdt (ORCPT + 99 others); Mon, 4 May 2020 07:33:49 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:56686 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728655AbgEDLdt (ORCPT ); Mon, 4 May 2020 07:33:49 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 9C7ADFC07102EA98B7C6; Mon, 4 May 2020 19:33:46 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Mon, 4 May 2020 19:33:37 +0800 From: Jason Yan To: , , , , , , CC: Jason Yan Subject: [PATCH] b43: remove Comparison of 0/1 to bool variable in phy_n.c Date: Mon, 4 May 2020 19:33:00 +0800 Message-ID: <20200504113300.40895-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fix the following coccicheck warning: drivers/net/wireless/broadcom/b43/phy_n.c:5510:19-32: WARNING: Comparison of 0/1 to bool variable Signed-off-by: Jason Yan --- drivers/net/wireless/broadcom/b43/phy_n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/b43/phy_n.c b/drivers/net/wireless/broadcom/b43/phy_n.c index d3c001fa8eb4..c33b4235839d 100644 --- a/drivers/net/wireless/broadcom/b43/phy_n.c +++ b/drivers/net/wireless/broadcom/b43/phy_n.c @@ -5507,7 +5507,7 @@ static int b43_nphy_cal_tx_iq_lo(struct b43_wldev *dev, core = (cmd & 0x3000) >> 12; type = (cmd & 0x0F00) >> 8; - if (phy6or5x && updated[core] == 0) { + if (phy6or5x && !updated[core]) { b43_nphy_update_tx_cal_ladder(dev, core); updated[core] = true; } -- 2.21.1