Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp421604ybj; Tue, 5 May 2020 00:51:56 -0700 (PDT) X-Google-Smtp-Source: APiQypKOkFW7N/WKNb7vUm0SF1zSBGxzq3Iy+afJs1TaWC/cjZ0LR679wCDQg/D5WvyJ9RqMtjal X-Received: by 2002:a17:907:210d:: with SMTP id qn13mr1515133ejb.376.1588665116572; Tue, 05 May 2020 00:51:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588665116; cv=none; d=google.com; s=arc-20160816; b=yO9XzP8uB5q1WRHZcOHihX9cNManRTptfKqpcbLm0Nh2JKylG79qOvmISBP+jcOybR JxcZ7iRBdSl5FpqW4y0e3AYIHKhW/o946o7VLEfVkWXv58/Us3fahtNrjLfqzFfcusNR 4eGroaVpNhkauEIA5HIMcpWqyXf4s6cViUeeOrP13YWatDZbLuKfLpr7D0EAyM6T1VR4 YIdeUoDyXcVpPQLkaMowNw093Kfr9aOW8EDU09d7DQ1O0MELkG7jJ8aRQXIKD8sWDU8p Ifzd5jlXxA/1AMq39lMmbsdVAegCqOOC6V0cEhfVLTGD0kHELsYg/fAeUpPlGsoZIwYx lOIA== 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=UhRcpiIPmx/R+nP5MXHNFtvr6ozagxdhlCVdZ7xVxIM=; b=EpBuF/wj3KGDk4XVqGBpc658A1TcBGI2JTQfKIAHUCuVXgfgEKK6HA1AbdiZMAz2Ad sS3G4gyvd6+gauVOm+OYW1SAKyA9YJqWc5P4OsHTACHgvI5ohNj8szt2r7+uZ0l/bwyD GjrJ7KoJyR3YaPNtQZ9MXH1WSNBHdkoo2eh4XEOZpm5QC6HLCrdJdHFeiokfEYUG5AUA fKEWxhs9mMWYrGXy2ULWFMK7sofp32L/Qhhxr9x7dJydO8WPk8qI7n1lrG957zG0Wuz2 qM1HGW/KOX+wYjNjAoyDOeyjG1C0Rcz+TZOTUbchX0oMfc2YX4rZV3kifD2RZp4vP3/k DFag== 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 l16si677589ejq.268.2020.05.05.00.51.33; Tue, 05 May 2020 00:51:56 -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 S1728640AbgEEHrO (ORCPT + 99 others); Tue, 5 May 2020 03:47:14 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:58710 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725833AbgEEHrO (ORCPT ); Tue, 5 May 2020 03:47:14 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id F2146D734242C58E3C61; Tue, 5 May 2020 15:47:10 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Tue, 5 May 2020 15:47:01 +0800 From: Jason Yan To: , , , , , , , , , , , , , , , CC: Jason Yan Subject: [PATCH net-next] net: ethernet: ti: use true,false for bool variables in cpsw_new.c Date: Tue, 5 May 2020 15:46:23 +0800 Message-ID: <20200505074623.22541-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/ti/cpsw_new.c:1924:2-17: WARNING: Assignment of 0/1 to bool variable drivers/net/ethernet/ti/cpsw_new.c:1231:1-16: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan --- drivers/net/ethernet/ti/cpsw_new.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw_new.c b/drivers/net/ethernet/ti/cpsw_new.c index 33c8dd686206..dce49311d3d3 100644 --- a/drivers/net/ethernet/ti/cpsw_new.c +++ b/drivers/net/ethernet/ti/cpsw_new.c @@ -1228,7 +1228,7 @@ static int cpsw_probe_dt(struct cpsw_common *cpsw) data->active_slave = 0; data->channels = CPSW_MAX_QUEUES; data->ale_entries = CPSW_ALE_NUM_ENTRIES; - data->dual_emac = 1; + data->dual_emac = true; data->bd_ram_size = CPSW_BD_RAM_SIZE; data->mac_control = 0; @@ -1921,7 +1921,7 @@ static int cpsw_probe(struct platform_device *pdev) soc = soc_device_match(cpsw_soc_devices); if (soc) - cpsw->quirk_irq = 1; + cpsw->quirk_irq = true; cpsw->rx_packet_max = rx_packet_max; cpsw->descs_pool_size = descs_pool_size; -- 2.21.1