pci: Make is_bridge a bool
commit91f4c995f26795dbb6d1b09392a6448e389ed029
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 13 May 2019 06:19:38 +0000 (13 16:19 +1000)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 29 May 2019 22:00:57 +0000 (29 18:00 -0400)
treee40524157bc2b674228bf2033adb029d9e7b58ae
parent2f57db8a2781787a0a31d3a9ce4a286fc45a42b3
pci: Make is_bridge a bool

The is_bridge field in PCIDevice acts as a bool, but is declared as an int.
Declare it as a bool for clarity, and change everything that writes it to
use true/false instead of 0/1 to match.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
Message-Id: <20190513061939.3464-5-david@gibson.dropbear.id.au>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci-bridge/dec.c
hw/pci-bridge/i82801b11.c
hw/pci-bridge/pci_bridge_dev.c
hw/pci-bridge/pcie_pci_bridge.c
hw/pci-bridge/pcie_root_port.c
hw/pci-bridge/simba.c
hw/pci-bridge/xio3130_downstream.c
hw/pci-bridge/xio3130_upstream.c
include/hw/pci/pci.h