Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db89ed14 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Lorenzo Pieralisi
Browse files

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: eaa6111b ("PCI: altera: Add Altera PCIe host controller driver")
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: default avatarLey Foon Tan <ley.foon.tan@intel.com>
parent 7928b2cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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)
static int tlp_read_packet(struct altera_pcie *pcie, u32 *value)
{
{
	int i;
	int i;
	bool sop = 0;
	bool sop = false;
	u32 ctrl;
	u32 ctrl;
	u32 reg0, reg1;
	u32 reg0, reg1;
	u32 comp_status = 1;
	u32 comp_status = 1;