* [PATCH] PCI: altera: Fix bool initialization in tlp_read_packet
@ 2018-01-20 3:26 Gustavo A. R. Silva
2018-01-22 15:28 ` Ley Foon Tan
2018-02-28 17:00 ` Lorenzo Pieralisi
0 siblings, 2 replies; 3+ messages in thread
From: Gustavo A. R. Silva @ 2018-01-20 3:26 UTC (permalink / raw)
To: Ley Foon Tan, Lorenzo Pieralisi, Bjorn Helgaas
Cc: rfi, linux-pci, linux-kernel, Gustavo A. R. Silva
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 <gustavo@embeddedor.com>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] PCI: altera: Fix bool initialization in tlp_read_packet
2018-01-20 3:26 [PATCH] PCI: altera: Fix bool initialization in tlp_read_packet Gustavo A. R. Silva
@ 2018-01-22 15:28 ` Ley Foon Tan
2018-02-28 17:00 ` Lorenzo Pieralisi
1 sibling, 0 replies; 3+ messages in thread
From: Ley Foon Tan @ 2018-01-22 15:28 UTC (permalink / raw)
To: Gustavo A. R. Silva, Ley Foon Tan, Lorenzo Pieralisi, Bjorn Helgaas
Cc: rfi, linux-pci, linux-kernel, Gustavo A. R. Silva
On Fri, 2018-01-19 at 21:26 -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 <gustavo@embeddedor.com>
> ---
> 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
Acked-by: Ley Foon Tan <ley.foon.tan@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] PCI: altera: Fix bool initialization in tlp_read_packet
2018-01-20 3:26 [PATCH] PCI: altera: Fix bool initialization in tlp_read_packet Gustavo A. R. Silva
2018-01-22 15:28 ` Ley Foon Tan
@ 2018-02-28 17:00 ` Lorenzo Pieralisi
1 sibling, 0 replies; 3+ messages in thread
From: Lorenzo Pieralisi @ 2018-02-28 17:00 UTC (permalink / raw)
To: Gustavo A. R. Silva
Cc: Ley Foon Tan, Bjorn Helgaas, rfi, linux-pci, linux-kernel,
Gustavo A. R. Silva
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 <gustavo@embeddedor.com>
> ---
> 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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-02-28 17:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-20 3:26 [PATCH] PCI: altera: Fix bool initialization in tlp_read_packet Gustavo A. R. Silva
2018-01-22 15:28 ` Ley Foon Tan
2018-02-28 17:00 ` Lorenzo Pieralisi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).