Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1428584ybj; Fri, 8 May 2020 00:48:11 -0700 (PDT) X-Google-Smtp-Source: APiQypLf0rSx/Iftaaz6Px4tpCB/1ZJJICJp+zHlokTZZVN9VTnWnLBvPhLbVxfREh7PiMa/Knl2 X-Received: by 2002:a17:906:e210:: with SMTP id gf16mr858601ejb.214.1588924091402; Fri, 08 May 2020 00:48:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588924091; cv=none; d=google.com; s=arc-20160816; b=W8iVXsDyRbbWRnsGptvrzksGLaeEf/JfAZqf+Qs8/Lh3hgBLsKN6H3LuqP5763W84P yYgL82f933GZHI3r0U+3Z0rQc8lab8Qj5890od6hoPh02i+9kXVLS7Yuk25CVIEYY3pi lFHtPpOFJVrC8WYrHIgLrR6r7unPhaTSzX5oVOF8Ab06ljjDI+5gKRMPoqTSvoMa4vNK lfpswCSje5nqKc0iG5D+v3iu9UPUIwL9oQr4VsGwNPKs0T3dmsYHdmVGfifi/S45IKMM jevncaBl0YmfRthnD8FVLFbO4cqFr9qAFS4T5Cj/J+90m1iMlWrIanzYiMz1iUyjpYvL R7yg== 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=k01E0ttxbMlOEd3xTTuZThQxQA5NrEqH0GBAPY0x3Jk=; b=SW/Ai87FSzrkbb2mLoU/7WaC+u72NYMyQ/7yx2/2uuO+A/OSLTl9sRxfl6H8sgR9Bx 0X4PD5dBoo/xNRF74ALuPqCuraDbZhK88fIS3zSxKZ2+VbDzkeZOdFaBwrdQew2Epery iBKo7QMbjeXqRjwOdw7E1hqXbcX1XEYs+iLFH4AeZBgR19hCVhM7KZqlUNSpnDrbBD2h wmOXt/HrHUTFyHt1G+iGu/ZpRMZslcZFgkJNs/5yTL2fBUH+j1FhewaczZZLgciIc9J3 vPk16RMXbheLyT5yQWXbRTYJlxC4oMW0q3MZR0NrMIhJn+FT5UzVybgvzPRy1mXl4Dwr 6R0w== 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 q24si485919ejb.184.2020.05.08.00.47.37; Fri, 08 May 2020 00:48: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 S1726598AbgEHHow (ORCPT + 99 others); Fri, 8 May 2020 03:44:52 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4350 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726036AbgEHHov (ORCPT ); Fri, 8 May 2020 03:44:51 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 2B9E19B48087109A6A1F; Fri, 8 May 2020 15:44:47 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Fri, 8 May 2020 15:44:37 +0800 From: Jason Yan To: , , , , , , , , , , CC: Jason Yan Subject: [PATCH v2] brcmfmac: remove Comparison to bool in brcmf_p2p_send_action_frame() Date: Fri, 8 May 2020 15:43:51 +0800 Message-ID: <20200508074351.19193-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/brcmfmac/p2p.c:1785:5-8: WARNING: Comparison to bool Signed-off-by: Jason Yan Reviewed-by: Chi-hsien Lin --- v2: Rebased on top of wireless-drivers-next and drop one already fixed line. drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c index e32c24a2670d..8cde31675dfb 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c @@ -1836,7 +1836,7 @@ bool brcmf_p2p_send_action_frame(struct brcmf_cfg80211_info *cfg, dwell_overflow = brcmf_p2p_check_dwell_overflow(requested_dwell, dwell_jiffies); } - if (ack == false) { + if (!ack) { bphy_err(drvr, "Failed to send Action Frame(retry %d)\n", tx_retry); clear_bit(BRCMF_P2P_STATUS_GO_NEG_PHASE, &p2p->status); -- 2.21.1