Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1080760pxk; Fri, 18 Sep 2020 03:19:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9LIknQmitQdUHFBx4GnT5Iz+V8TVeCn+oFQiNrKJVBoynNCeShh9GlucqiPLsqzSddnbD X-Received: by 2002:a17:906:ae45:: with SMTP id lf5mr34137118ejb.339.1600424385679; Fri, 18 Sep 2020 03:19:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600424385; cv=none; d=google.com; s=arc-20160816; b=hANK59jKr8npYlvgyVuMn9lD2xbt8eW45pnatqCQBAFDhXi7/a3lfXkKJIeCRdfgZR O4OhM4wXZKT1hT8c2z8jmrFhHJSJTNQELca5mBy9+Cn3HYhHcVNzNYDnhf6fLBMZdHS0 92DS3tuvR8YE6QDh/F9ZUPt0jXTKUfyDv1RJeTJE9T/imztMPOdgrXkNgzrcDIx2BA3r 49wESlibFog16WEgcIQPC+LBfeBo4ff9u1xIKfc+7ZTadHqGZjAWBw+YAi0Bh5LuOa0f kdyFuk/3bNwvtBSeVIu74O025huUpB2dYJwKq/+kkOgrb1TIbH0QVaNARtTtdYJuBWXe W7aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=6vroc4lskPZ+8Uy0caceTd+hp9iUD3P3vAyaYiVbUD8=; b=DNlbzuP4bhX0vfxYIw2oNYPak91ai9J4ozT+0iE0WyU8HvMG4MtZlM7Gt1BCuNwguZ pPQI5/QqUPAiFKsWhUx36JGRtADIpF3y8nuCWQiwRv0A335P9IC3nX0ln9qCqGwaGLy1 xTjbi6tky3k/7w+gJHyFycEC0OsjD0jY/DGqwvl6Vjeeffd58mOxwXjxgPPvf6ujJIzA cIMwh728/STeGelXz/QkvSDT/CdzBzcdyFgQaxZHk01N8lO8YpDngL81ZJnDsfcsRcf7 F8BJLECQwelKXlJ1YhqveJ5BLgOrduM+Q+gVxJ4DzJzKB0wxh0OBFCuY/OMMPUiozrbQ CAxQ== 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 n25si1726297ejc.572.2020.09.18.03.19.20; Fri, 18 Sep 2020 03:19:45 -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 S1726851AbgIRKSr (ORCPT + 99 others); Fri, 18 Sep 2020 06:18:47 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:56580 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726533AbgIRKSZ (ORCPT ); Fri, 18 Sep 2020 06:18:25 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 27BF4E6DBB8D80B0B27B; Fri, 18 Sep 2020 18:18:20 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Fri, 18 Sep 2020 18:18:13 +0800 From: Zheng Bin To: , , , , , , CC: , Subject: [PATCH -next 7/9] rtlwifi: rtl8192ce: fix comparison to bool warning in hw.c Date: Fri, 18 Sep 2020 18:25:03 +0800 Message-ID: <20200918102505.16036-8-zhengbin13@huawei.com> X-Mailer: git-send-email 2.26.0.106.g9fadedd In-Reply-To: <20200918102505.16036-1-zhengbin13@huawei.com> References: <20200918102505.16036-1-zhengbin13@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fixes coccicheck warning: drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c:616:14-20: WARNING: Comparison to bool drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c:621:13-19: WARNING: Comparison to bool drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c:626:14-20: WARNING: Comparison to bool drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c:631:13-19: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c index d4cd186036fd..bb5a0c4aec93 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c @@ -613,22 +613,22 @@ static bool _rtl92ce_llt_table_init(struct ieee80211_hw *hw) for (i = 0; i < (txpktbuf_bndy - 1); i++) { status = _rtl92ce_llt_write(hw, i, i + 1); - if (true != status) + if (!status) return status; } status = _rtl92ce_llt_write(hw, (txpktbuf_bndy - 1), 0xFF); - if (true != status) + if (!status) return status; for (i = txpktbuf_bndy; i < maxpage; i++) { status = _rtl92ce_llt_write(hw, i, (i + 1)); - if (true != status) + if (!status) return status; } status = _rtl92ce_llt_write(hw, maxpage, txpktbuf_bndy); - if (true != status) + if (!status) return status; return true; -- 2.26.0.106.g9fadedd