summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorJuan Quintela2017-03-28 11:08:52 +0200
committerJuan Quintela2017-04-21 12:25:40 +0200
commit9bed84c19138bd161e9a6157a93ae0b25b5f7a71 (patch)
tree9d0a30a53365ea963c450633cdd0036f08850fe3 /hw
parentmigration: Remove MigrationState parameter from migration_is_idle() (diff)
downloadqemu-9bed84c19138bd161e9a6157a93ae0b25b5f7a71.tar.gz
qemu-9bed84c19138bd161e9a6157a93ae0b25b5f7a71.tar.xz
qemu-9bed84c19138bd161e9a6157a93ae0b25b5f7a71.zip
qdev: qdev_hotplug is really a bool
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: zhanghailiang <zhang.zhanghailiang@huawei.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw')
-rw-r--r--hw/core/qdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/core/qdev.c b/hw/core/qdev.c
index 1e7fb33246..6fa46b5245 100644
--- a/hw/core/qdev.c
+++ b/hw/core/qdev.c
@@ -39,7 +39,7 @@
#include "qapi-event.h"
#include "migration/migration.h"
-int qdev_hotplug = 0;
+bool qdev_hotplug = false;
static bool qdev_hot_added = false;
static bool qdev_hot_removed = false;
@@ -385,7 +385,7 @@ void qdev_machine_creation_done(void)
* ok, initial machine setup is done, starting from now we can
* only create hotpluggable devices
*/
- qdev_hotplug = 1;
+ qdev_hotplug = true;
}
bool qdev_machine_modified(void)