Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3513346ybz; Mon, 4 May 2020 04:35:16 -0700 (PDT) X-Google-Smtp-Source: APiQypKpoN8ljxgL0HfKF/gSGKljH8/mfYtlfGMPhe+UL9qV+hOtU9bVW3E82+oF+2C0KBL+oGgj X-Received: by 2002:a17:906:8286:: with SMTP id h6mr14696460ejx.28.1588592116378; Mon, 04 May 2020 04:35:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588592116; cv=none; d=google.com; s=arc-20160816; b=KR0QWy0vtPo73ULe27XR4So4kJbGUeK2diprT2Yp5qGnWvzexsjUT89fZxwMwRP+jB DIlbu/fnMkN8nO6qpaTSt4hdhTKcm7F4HtTAVn+hXl0XHptp16fo+z90ryW/i41okrdj 2lo3oC0fByHfKyXOzX5MCtccQK24hLgxrE/4u0hDxNmNdKrdq2YFsR2SmYy34ssSg+r5 Whyx2XI3rDmDvs64qmwEKBmovQGsrVYvvqkXBCdrs5gaq7bnrRAckaMTVGs8I+WKfUWL IXSY2Fz/VHuJ8I/He3wTr4jb2xyJevSN7d8hEYnHEyPxnNrw+u2X8JcUQ0mLbybkwOsW 3vOQ== 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=AnQ0Hmagjzs2aOkKAx8SwCA6aRo+/gD5XA46S4SupjQ=; b=Y338NXZcH81D/d1sHp9YzCNKZnlOn5NKtrr6RXZQPefC33fFh3OVq6jUyRkAbEoBJs sm/Nn2kL+Dqx82OGdMEk0/FgpF2y+i0W/gR5sHEhwkv9iJkV+FQrDtKFkkxKgk0kiJQC mGJHvSyP26RPZai73p1cUKJJeDHRF1W4asWL8AOlIL4eANodsVQoR/2+3im+PGJpbxx/ aSX0oostgvViSfOSgsq4nF2gsSJP17sRPscBIk9gMc4tfPEopRqqL+FPVL1USyo1wmAU 3tLvanMm9tMkAZeZbr6Rw0yLQdqCR82wEmCjeh+zkl2Ewk/LPmcENsnA+8FQ8RyRI532 lk2g== 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 ec15si6665502ejb.286.2020.05.04.04.34.53; Mon, 04 May 2020 04:35:16 -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 S1728689AbgEDLd6 (ORCPT + 99 others); Mon, 4 May 2020 07:33:58 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:55808 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728630AbgEDLd6 (ORCPT ); Mon, 4 May 2020 07:33:58 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id C928BC0AEEF31254BEE3; Mon, 4 May 2020 19:33:56 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Mon, 4 May 2020 19:33:48 +0800 From: Jason Yan To: , , , , , , CC: Jason Yan Subject: [PATCH] b43: remove Comparison of 0/1 to bool variable in pio.c Date: Mon, 4 May 2020 19:33:11 +0800 Message-ID: <20200504113311.41026-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/pio.c:768:10-25: WARNING: Comparison of 0/1 to bool variable Signed-off-by: Jason Yan --- drivers/net/wireless/broadcom/b43/pio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/b43/pio.c b/drivers/net/wireless/broadcom/b43/pio.c index 69f8b46c9015..1a11c5dfb8d9 100644 --- a/drivers/net/wireless/broadcom/b43/pio.c +++ b/drivers/net/wireless/broadcom/b43/pio.c @@ -765,7 +765,7 @@ void b43_pio_rx(struct b43_pio_rxqueue *q) bool stop; while (1) { - stop = (pio_rx_frame(q) == 0); + stop = !pio_rx_frame(q); if (stop) break; cond_resched(); -- 2.21.1