Received: by 10.223.176.46 with SMTP id f43csp390249wra; Fri, 19 Jan 2018 19:55:14 -0800 (PST) X-Google-Smtp-Source: AH8x225FrrUBg3++jMPu1RbFJoObhDkhAV3XQgZZy4rLbn1QWk0oh1kvbUX+SHR+ptAdTM+OtcB6 X-Received: by 10.98.19.19 with SMTP id b19mr860889pfj.118.1516420514253; Fri, 19 Jan 2018 19:55:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516420514; cv=none; d=google.com; s=arc-20160816; b=Eh38Jl07dLjGOqAgFumSHU/QYAbnutniHuc0UL4OltYCYVOqqXH5wCE5RsKLZzlTdJ AZEx/Ky32LVt174fURLyWmAK6U9ybYc2z9Ae8CNSkniCuiYUwCIBh2ICyUi6Q2VW6Dqt 60OXF8wfSp0Ivo9aiajtc/wlT/z2WjZBtfd+rxDcMK3r+cMzXcdkcppg1v38fU/35244 3aOuVDBiOCtfePenL327NFctFFf4tO1uIpB/AjIBgll1Q7D+Bh5tuDbuMQZJzfbuP3SN 9Ko122620UpPScEkwFaAp1hEIbhzT+Sp318Kpwuii9F3nG2TpYyUFRbIybjF1O1PrDFh UFfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=tJm9X6GBl3vMs/Wazh3JGn1PTOuAFHJ/SgsSbsrxmRQ=; b=MZoCK/txmsOv7/KO/v+Thve9JGG8nQbzifSLx2BuV8eODuPYfZemAKwXKePEEgBPt2 SqhMuF8Gr6aod0PNIK1hvGSqmKTk3CmjHt8GH1uWbfSJzjvwT8GBt7Ug/GkhUkZlomfs ijzQDl0Vo4+Bwc4xVucitgOfOBRid6/UmIo50S+xrIn9tWozdr3tnfxk/O9yMlpIJj0N XJYrM+xKRCXldpDVEfazPUMtdxARFzhVFDnUr8iht/oo3Z5hnCEJ+UfaQZHoa298yhom y9UszoIIiQ4siBXdWR0HUFCwg7obhKePm54Dppu6RHlznlUVm8PBAFu6EM3y7Or47LxD kyZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o33-v6si1367819plb.354.2018.01.19.19.54.49; Fri, 19 Jan 2018 19:55:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753427AbeATDuP (ORCPT + 99 others); Fri, 19 Jan 2018 22:50:15 -0500 Received: from gateway36.websitewelcome.com ([192.185.193.119]:48553 "EHLO gateway36.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750974AbeATDuJ (ORCPT ); Fri, 19 Jan 2018 22:50:09 -0500 X-Greylist: delayed 1396 seconds by postgrey-1.27 at vger.kernel.org; Fri, 19 Jan 2018 22:50:09 EST Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway36.websitewelcome.com (Postfix) with ESMTP id 91421400ECA00 for ; Fri, 19 Jan 2018 21:26:52 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id cjnweq9CvBUMKcjnwewUbn; Fri, 19 Jan 2018 21:26:52 -0600 Received: from [189.152.234.72] (port=48716 helo=embeddedgus) by gator4166.hostgator.com with esmtpa (Exim 4.89_1) (envelope-from ) id 1ecjnw-004NCF-32; Fri, 19 Jan 2018 21:26:52 -0600 Date: Fri, 19 Jan 2018 21:26:51 -0600 From: "Gustavo A. R. Silva" To: Ley Foon Tan , Lorenzo Pieralisi , Bjorn Helgaas Cc: rfi@lists.rocketboards.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH] PCI: altera: Fix bool initialization in tlp_read_packet Message-ID: <20180120032651.GA14512@embeddedgus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.152.234.72 X-Source-L: No X-Exim-ID: 1ecjnw-004NCF-32 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedgus) [189.152.234.72]:48716 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 6 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Bool initializations should use true and false. This issue was detected with the help of Coccinelle. Fixes: eaa6111b70a7 ("PCI: altera: Add Altera PCIe host controller driver") Signed-off-by: Gustavo A. R. Silva --- drivers/pci/host/pcie-altera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie-altera.c index 5cc4f59..f9ee090 100644 --- a/drivers/pci/host/pcie-altera.c +++ b/drivers/pci/host/pcie-altera.c @@ -156,7 +156,7 @@ static bool altera_pcie_valid_device(struct altera_pcie *pcie, static int tlp_read_packet(struct altera_pcie *pcie, u32 *value) { int i; - bool sop = 0; + bool sop = false; u32 ctrl; u32 reg0, reg1; u32 comp_status = 1; -- 2.7.4