Received: by 10.223.185.116 with SMTP id b49csp6414110wrg; Wed, 28 Feb 2018 09:01:47 -0800 (PST) X-Google-Smtp-Source: AH8x224ZbplckII4h6gCCU53It5HPklp3MQ1MnotPgSWhOXNcu8UlOYRgpEiOj8KV2d3SGzd/Ifz X-Received: by 2002:a17:902:c81:: with SMTP id 1-v6mr18708133plt.205.1519837307573; Wed, 28 Feb 2018 09:01:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519837307; cv=none; d=google.com; s=arc-20160816; b=NX/bBKFxeHLUAd1AWCIIgWGXyzROYh0aIu8QqHqtZqZeyEgp3jUf0ytzam6VnYA0j9 f0Ork2UjS8cwnpxpAipTZxp6aylOPZACO3xM7jgmDjmQcyS0e3uF/17xhWBM4ZPS/O+N BxTRIc8UdaBuknsIcI8bjLXv9oXNPmBDX+sX7w9HR7Axl1Yf35NybKjDw1jSNlnZX6Y2 W8PPwkV9MpkNHNshP8jRq1V7b8xuamnuSoUAxVSYFAe1NxLqbtz3vewbXwVti7OzSrsD yup5BktuAYAcoqmaIioC14sjw383yIrrokKLOdO5YdfRsbgagj1cDi95VXOdxSd/7Clz PIQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=QhY8CKMqYHMd5Kcl90L9IDDctzfcn6fLiFp6q/rjx4A=; b=Gyi4HnCRwregNWrSo5Lw7b1WH2iR6IxZ6Vi5MAV24aqNgTio8dNpJVrdddAT54mq+c Ih5cxYFkN/SY0BLAz7FFBYwSoCyHUiYknRrgEYZKvf23kVxfTk/J69SCgb8+zXMzqYfR rdBUudMIkr8MK7ekj3dqh+dpMAqfwRHTCbB2Ct+9lfXSUQv0s5dImiHVe9yuf5p/RCAi +XWOKoVU7qdIdHy79bwEUNO1tjDHzNMPbFAoQfPOJNRzuyR3ZSQmwoLvWA5oF1JFttFI 24Qiw7z9a2bhRwt3WUtFQG43Mjphk0WnH0HOjKmaLKMWDYwL8OoMKkMqjJzL/UA6Y7xL pA5Q== 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 t3-v6si1511099plm.224.2018.02.28.09.01.30; Wed, 28 Feb 2018 09:01:47 -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 S933262AbeB1RAU (ORCPT + 99 others); Wed, 28 Feb 2018 12:00:20 -0500 Received: from foss.arm.com ([217.140.101.70]:54216 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932236AbeB1RAR (ORCPT ); Wed, 28 Feb 2018 12:00:17 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 23FCA1529; Wed, 28 Feb 2018 09:00:17 -0800 (PST) Received: from e107981-ln.cambridge.arm.com (e107981-ln.cambridge.arm.com [10.1.207.54]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C1F243F318; Wed, 28 Feb 2018 09:00:15 -0800 (PST) Date: Wed, 28 Feb 2018 17:00:12 +0000 From: Lorenzo Pieralisi To: "Gustavo A. R. Silva" Cc: Ley Foon Tan , Bjorn Helgaas , rfi@lists.rocketboards.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: Re: [PATCH] PCI: altera: Fix bool initialization in tlp_read_packet Message-ID: <20180228170012.GB14610@e107981-ln.cambridge.arm.com> References: <20180120032651.GA14512@embeddedgus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180120032651.GA14512@embeddedgus> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 19, 2018 at 09:26:51PM -0600, Gustavo A. R. Silva wrote: > 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(-) Applied to pci/altera for v4.17, thanks. Lorenzo > 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 >