mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-28 21:46:02 -04:00
x86/apic: Make some APIC init functions bool
Quite some APIC init functions are pure boolean, but use the success = 0, fail < 0 model. That's confusing as hell when reading through the code. Convert them to boolean. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Tested-by: Michael Kelley <mikelley@microsoft.com> Tested-by: Sohil Mehta <sohil.mehta@intel.com> Tested-by: Juergen Gross <jgross@suse.com> # Xen PV (dom0 and unpriv. guest)
This commit is contained in:
committed by
Dave Hansen
parent
2906a67ac8
commit
1751adedbd
@@ -158,7 +158,7 @@ static void __init dtb_lapic_setup(void)
|
||||
/* Did the boot loader setup the local APIC ? */
|
||||
if (!boot_cpu_has(X86_FEATURE_APIC)) {
|
||||
/* Try force enabling, which registers the APIC address */
|
||||
if (apic_force_enable(lapic_addr))
|
||||
if (!apic_force_enable(lapic_addr))
|
||||
return;
|
||||
} else {
|
||||
register_lapic_address(lapic_addr);
|
||||
|
||||
Reference in New Issue
Block a user