PCI: altera: Fix bool initialization in tlp_read_packet()
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Sat, 20 Jan 2018 03:26:51 +0000 (21:26 -0600)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 28 Feb 2018 16:44:11 +0000 (16:44 +0000)
commitdb89ed14a2f2fcaa157a57fe3dd32cdb48459e2b
tree6b45698914e26da5e72d5988b1a72060b321b31f
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2
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: eaa6111b70a7 ("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>
drivers/pci/host/pcie-altera.c