summaryrefslogtreecommitdiffstats
path: root/include/hw/pci
diff options
context:
space:
mode:
authorDavid Gibson2019-05-13 08:19:38 +0200
committerMichael S. Tsirkin2019-05-30 00:00:57 +0200
commit91f4c995f26795dbb6d1b09392a6448e389ed029 (patch)
treee40524157bc2b674228bf2033adb029d9e7b58ae /include/hw/pci
parentpcie: Simplify pci_adjust_config_limit() (diff)
downloadqemu-91f4c995f26795dbb6d1b09392a6448e389ed029.tar.gz
qemu-91f4c995f26795dbb6d1b09392a6448e389ed029.tar.xz
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 'include/hw/pci')
-rw-r--r--include/hw/pci/pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h
index da20c915ef..d082707dfa 100644
--- a/include/hw/pci/pci.h
+++ b/include/hw/pci/pci.h
@@ -234,7 +234,7 @@ typedef struct PCIDeviceClass {
* This doesn't mean pci host switch.
* When card bus bridge is supported, this would be enhanced.
*/
- int is_bridge;
+ bool is_bridge;
/* rom bar */
const char *romfile;