Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3515404ybz; Mon, 4 May 2020 04:37:48 -0700 (PDT) X-Google-Smtp-Source: APiQypKdvtxNibolZaZBXgMUlEWnimhE8IvcuuQLQ3LJWti+rMhqnTz5CgmCC/BeuuCknjCVgNiS X-Received: by 2002:aa7:d6c7:: with SMTP id x7mr14251573edr.313.1588592268260; Mon, 04 May 2020 04:37:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588592268; cv=none; d=google.com; s=arc-20160816; b=ZRqS0et6nPId1rxJUv80PtYWhrjyPmvgBKnXMFhzuK8pzr/mYvUzO/iqbUPFO7/Ax1 IgCFqoNuU72uljvxlVKi9UcrrOZ9Ghx7ePPZDrp1zmrNF+B13J3zUopbC8hnoRJZ/ViE X+L5kx4XQisErwOPHS8JP2H1u/1oX9yM9sNfIYTadj5ecs8N4PTnwjiaQpW3tB1XONPy dDcafmcNdr4qkUTgKQPdImdONsWD67/MiNlEF4/QGlJsh/5sybDXWvEGnRUWaCHBGAkf RW9gLVyJsDpX1wY02ptimWVSCRC0uqMuI9EHQNDwpTfClnYrIpF7MEMSCiR2jQ+3uEFh kVFQ== 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=d8VVwzWofWq1PNKK9MRn6UR6e8sNvRaovjBOKrGg07M=; b=vfXjJaZRWULSdX6mG+XcT+7iHYG3UDAtTuo33q2x/K/wkluWI85XL/W6k/M9S4NgDT 9iH+FXF4lXrGu2V5cfVOkBiSUg17QN91k+Rbcs5dL0tjXex4YP6Vh/BS5Sfd/Fajw5kb NS7FsPDCDvCLLB+UJPaEGkAEykcd0lNcqG33/4f/9AoH5cPgnCEUcVpsFmaDXzriOhLt l7nZnSzVc+vkSMUv6hk10R5MK6+ZFsR5I0WNNEneiDp3WTBYQgodIZF0NuOxFXvJWwqf 4WghXlrUDfbXH7tpjUueo2FBFui03yhdegrOs+DnYT6z87X54hNXx/r7wixEkDC+Fm9c Abpg== 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 rv13si6760237ejb.115.2020.05.04.04.37.25; Mon, 04 May 2020 04:37:48 -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 S1728759AbgEDLes (ORCPT + 99 others); Mon, 4 May 2020 07:34:48 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:3787 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726756AbgEDLer (ORCPT ); Mon, 4 May 2020 07:34:47 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 64579D79523277A8C79F; Mon, 4 May 2020 19:34:45 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Mon, 4 May 2020 19:34:35 +0800 From: Jason Yan To: , , , , , , , , , , , , CC: Jason Yan Subject: [PATCH] brcmsmac: remove Comparison to bool in brcms_b_txstatus() Date: Mon, 4 May 2020 19:33:57 +0800 Message-ID: <20200504113357.41422-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/brcm80211/brcmsmac/main.c:1060:6-12: WARNING: Comparison to bool Signed-off-by: Jason Yan --- drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c index d88f8d456b94..77494fc30c2c 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c @@ -1057,7 +1057,7 @@ brcms_b_txstatus(struct brcms_hardware *wlc_hw, bool bound, bool *fatal) txs->lasttxtime = 0; *fatal = brcms_c_dotxstatus(wlc_hw->wlc, txs); - if (*fatal == true) + if (*fatal) return false; n++; } -- 2.21.1