PCI: altera: Fix bool initialization in tlp_read_packet()

Bool variables should be initialized only through true and false
values; update tlp_read_packet() code to comply.

Detected using the Coccinelle tool.

Fixes: eaa6111b70 ("PCI: altera: Add Altera PCIe host controller driver")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Ley Foon Tan <ley.foon.tan@intel.com>
This commit is contained in:
Gustavo A. R. Silva 2018-01-19 21:26:51 -06:00 committed by Lorenzo Pieralisi
parent 7928b2cbe5
commit db89ed14a2

View file

@ -145,7 +145,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;