]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
xen/x86: ioapic: Use true/false in bad_ioapic_register()
authorJulien Grall <jgrall@amazon.com>
Fri, 27 Mar 2020 18:16:22 +0000 (18:16 +0000)
committerJulien Grall <jgrall@amazon.com>
Fri, 10 Apr 2020 11:23:48 +0000 (12:23 +0100)
bad_ioapic_register() is returning a bool, so we should switch to
true/false.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Wei Liu <wl@xen.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/io_apic.c

index e98e08e9c8b566f769629716e6bf5a93e6ecced4..9868933287fe00d444afe35390c542c3eb4cb4c7 100644 (file)
@@ -2531,10 +2531,10 @@ static __init bool bad_ioapic_register(unsigned int idx)
     {
         printk(KERN_WARNING "I/O APIC %#x registers return all ones, skipping!\n",
                mp_ioapics[idx].mpc_apicaddr);
-        return 1;
+        return true;
     }
 
-    return 0;
+    return false;
 }
 
 void __init init_ioapic_mappings(void)