diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2019-05-13 16:19:38 +1000 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2019-05-29 18:00:57 -0400 |
| commit | 91f4c995f26795dbb6d1b09392a6448e389ed029 (patch) | |
| tree | e40524157bc2b674228bf2033adb029d9e7b58ae /hw/pci-bridge/pcie_pci_bridge.c | |
| parent | 2f57db8a2781787a0a31d3a9ce4a286fc45a42b3 (diff) | |
| download | focaccia-qemu-91f4c995f26795dbb6d1b09392a6448e389ed029.tar.gz focaccia-qemu-91f4c995f26795dbb6d1b09392a6448e389ed029.zip | |
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>
Diffstat (limited to 'hw/pci-bridge/pcie_pci_bridge.c')
| -rw-r--r-- | hw/pci-bridge/pcie_pci_bridge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci-bridge/pcie_pci_bridge.c b/hw/pci-bridge/pcie_pci_bridge.c index d491b40d04..9a4fba413a 100644 --- a/hw/pci-bridge/pcie_pci_bridge.c +++ b/hw/pci-bridge/pcie_pci_bridge.c @@ -143,7 +143,7 @@ static void pcie_pci_bridge_class_init(ObjectClass *klass, void *data) DeviceClass *dc = DEVICE_CLASS(klass); HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(klass); - k->is_bridge = 1; + k->is_bridge = true; k->vendor_id = PCI_VENDOR_ID_REDHAT; k->device_id = PCI_DEVICE_ID_REDHAT_PCIE_BRIDGE; k->realize = pcie_pci_bridge_realize; |