diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-06-07 20:36:15 +0400 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2017-06-20 14:31:32 +0200 |
commit | c03d83d55a27f11a4fe87ac7b0085bcbb440d9ac (patch) | |
tree | c8077e584e9388fd199d930e9aca694cc86a608b /hw/acpi | |
parent | b053ef6106dc99c56972fd72a4880571c6fbd669 (diff) | |
download | qemu-c03d83d55a27f11a4fe87ac7b0085bcbb440d9ac.zip qemu-c03d83d55a27f11a4fe87ac7b0085bcbb440d9ac.tar.gz qemu-c03d83d55a27f11a4fe87ac7b0085bcbb440d9ac.tar.bz2 |
pcihp: use get_uint() for "bsel" property
The property is defined with object_property_add_uint32_ptr()
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20170607163635.17635-24-marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'hw/acpi')
-rw-r--r-- | hw/acpi/pcihp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/acpi/pcihp.c b/hw/acpi/pcihp.c index 3a531a4..c420a38 100644 --- a/hw/acpi/pcihp.c +++ b/hw/acpi/pcihp.c @@ -62,10 +62,10 @@ typedef struct AcpiPciHpFind { static int acpi_pcihp_get_bsel(PCIBus *bus) { Error *local_err = NULL; - int64_t bsel = object_property_get_int(OBJECT(bus), ACPI_PCIHP_PROP_BSEL, - &local_err); + uint64_t bsel = object_property_get_uint(OBJECT(bus), ACPI_PCIHP_PROP_BSEL, + &local_err); - if (local_err || bsel < 0 || bsel >= ACPI_PCIHP_MAX_HOTPLUG_BUS) { + if (local_err || bsel >= ACPI_PCIHP_MAX_HOTPLUG_BUS) { if (local_err) { error_free(local_err); } |