Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1718562ybz; Sun, 26 Apr 2020 02:46:03 -0700 (PDT) X-Google-Smtp-Source: APiQypLlTKCWj80c+Zi+UHj45tevgGgzE1CGWHyOji2a4u+Fbj43KPwKurHTeglAYSPOLQAZ03Gh X-Received: by 2002:a17:907:2142:: with SMTP id rk2mr15283459ejb.356.1587894363082; Sun, 26 Apr 2020 02:46:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587894363; cv=none; d=google.com; s=arc-20160816; b=WPIAbdXaFJ02yZoHRoVg8N1PnsadyxpSBs7XzcBTHak3tF9Yzhc1EJGwJ3xu3o4ta4 +N7JhGCNFqww6NbHM2TMXsa9qDC9ExAISyEE4tCjKHIey05964y/psIyy5YpnVG0m1CB l3VcV1oyfTljK7NHPCln7aUzy2orIA5Zp6IxFt7SiYAZuIj241URnGssFVeu9RQdBFp+ e2Br0Y0xJSCOkZaUKHFWzs2XWyHhBkpGirQnQyfwjYZPjkhBJMnSaL/rYp46spmXYZNX +dXBf2ffMmvyEoQf4M7XLyDYjXVflE9pbzLbwheYTm6RFZ+wmqCNv9+MCl1ezkFNC7Vg ZQiw== 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=vj5CbQfE5Lfy6FTy2X9wU5CWuYBYRV/5TpdUDqSx7k0=; b=MeM+lS/POeAwIQnw2xdFJVVMRM/lWrCjK1nQTmJiUF2PDZ8awbPfXBrSfkUvyi7NwT VP23VVSlNzJVCxhgIYZhgGHJG1jzOEDKHOJohFJsazWARG99OR7LLAwIIZaDG6MCYSfL +PbTYACh6JCgX7fvNLfDTuV4MumIv4qDVXtfRqwC+715gV+be3x1Hzx3pZUdibgqcLHE 1uRkUUPZqqSn55jOxJHdBwMiN+3rfLM109fhT4ZByLVLsxzZ5WYU2Z9iCNlU1exVIZjh o25nKnpWlBd7H44EIShOc9+ttNnAPAkUndkI/Sg3f2YCmiXfqXr6KbP7QRIhRXrGOAJb 5GZw== 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 pv24si6700052ejb.244.2020.04.26.02.45.40; Sun, 26 Apr 2020 02:46:03 -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 S1726502AbgDZJnK (ORCPT + 99 others); Sun, 26 Apr 2020 05:43:10 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:33536 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726251AbgDZJnK (ORCPT ); Sun, 26 Apr 2020 05:43:10 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 701EC3D6693913F477B6; Sun, 26 Apr 2020 17:43:07 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Sun, 26 Apr 2020 17:43:01 +0800 From: Jason Yan To: , , , , , , CC: Jason Yan Subject: [PATCH] i2c: powermac: use true,false for bool variable Date: Sun, 26 Apr 2020 17:42:28 +0800 Message-ID: <20200426094228.23829-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 In i2c_powermac_register_devices(), variable 'found_onyx' is bool and assigned '0' and 'true' in different places. Use 'false' instead of '0'. This fixes the following coccicheck warning: drivers/i2c/busses/i2c-powermac.c:318:6-16: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan --- drivers/i2c/busses/i2c-powermac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-powermac.c b/drivers/i2c/busses/i2c-powermac.c index d565714c1f13..00a6fd42c1ae 100644 --- a/drivers/i2c/busses/i2c-powermac.c +++ b/drivers/i2c/busses/i2c-powermac.c @@ -315,7 +315,7 @@ static void i2c_powermac_register_devices(struct i2c_adapter *adap, { struct i2c_client *newdev; struct device_node *node; - bool found_onyx = 0; + bool found_onyx = false; /* * In some cases we end up with the via-pmu node itself, in this -- 2.21.1