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>
This commit is contained in:
		
							parent
							
								
									b053ef6106
								
							
						
					
					
						commit
						c03d83d55a
					
				| 
						 | 
				
			
			@ -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);
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue