Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp420638ybj; Tue, 5 May 2020 00:50:38 -0700 (PDT) X-Google-Smtp-Source: APiQypJI1xXJu5Yf+BlsGujUwd4ZoYofMv0TkknN3ank73CUcmt8Xt08rp+q6YmpyUyd78YtqEy0 X-Received: by 2002:a50:f381:: with SMTP id g1mr1440167edm.219.1588665038796; Tue, 05 May 2020 00:50:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588665038; cv=none; d=google.com; s=arc-20160816; b=mIjIne3PDvJ7hHSQW/ANXPS6bcifOtckX9mtGzHK3yetZM4Dcs4CdiuuqRdbiKg710 k75EJTeGPCVedsfAq+JovNaWDpfEYYn9oXjhMWudkivAQ2CcZUAXQrcHX/plvf1QWPmh yB7tPsw9/2HQ3n7hVaPS3tgJa8vxWftO3iAQ5a5TYwhjIZ/lh+fDHKpdo+HVdglRqZWS lSKqX4I3uLSgnANg8+PTAcNymz17BwmdIQiY3vYZbuzgTvkpx1A9bIPwJs88fXDEd29l 9wF3x/KLp/OjGTY5aaXVWJiyCWgeDlC5ilTbt5EAeZ5e9qn0J0IFmlXfsOnHrmXpcma6 5tAQ== 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=eDUDZc8Kyraa2Mn/vr88pgvbeCvGeBBHoDhgd2cC3e8=; b=LAzSsxHOSr6yLmBAtX1Aa0BvbPBnEICL2gSBvLx0anD8GLSi/VHT1X2d8rk68QsPOZ cz02JUfDeUtDadFb+QnPCFCb3/9qP8dPQD05VuzsX1yCWo6p5fyOF+2JVqJQtYaTQvUk /IGpWHz/3esGbZiUdl7/rYr1nIVgRRjS4GFV9eiY4w0v6dvgReTDFcmH6VL/BPrqxODm iLrzjfnW0SvB2g4AKMMINHrjVd0Ay7sXJ3NZyVj2vqXV71GIC9mc7HW0RaoWcZ2eRyQQ WdtHYMzpcT68DhknkGHR7wCEp0gGlvfZ4CyachGYgcj6D2auXcbbS74DXMfmi4+u8F3N 6NcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 m4si667600eje.107.2020.05.05.00.50.16; Tue, 05 May 2020 00:50:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728341AbgEEHq0 (ORCPT + 99 others); Tue, 5 May 2020 03:46:26 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:56748 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725320AbgEEHq0 (ORCPT ); Tue, 5 May 2020 03:46:26 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 229104EBF276A91F6063; Tue, 5 May 2020 15:46:24 +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; Tue, 5 May 2020 15:46:16 +0800 From: Jason Yan To: , , , , , , , , , , , , , , , , , CC: Jason Yan Subject: [PATCH net-next] net: qede: Use true for bool variable in qede_init_fp() Date: Tue, 5 May 2020 15:45:39 +0800 Message-ID: <20200505074539.22161-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: drivers/net/ethernet/qlogic/qede/qede_main.c:1717:5-19: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan --- drivers/net/ethernet/qlogic/qede/qede_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/qlogic/qede/qede_main.c b/drivers/net/ethernet/qlogic/qede/qede_main.c index 9b456198cb50..256506024b88 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_main.c +++ b/drivers/net/ethernet/qlogic/qede/qede_main.c @@ -1714,7 +1714,7 @@ static void qede_init_fp(struct qede_dev *edev) txq->ndev_txq_id = ndev_tx_id; if (edev->dev_info.is_legacy) - txq->is_legacy = 1; + txq->is_legacy = true; txq->dev = &edev->pdev->dev; } -- 2.21.1