From ef948de9dc5d535a972c382a0b988c836e10a759 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Fri, 15 Sep 2017 10:06:55 +0100 Subject: [PATCH] arm/alternative.c: switch to plain bool Signed-off-by: Wei Liu Reviewed-by: Julien Grall --- xen/arch/arm/alternative.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xen/arch/arm/alternative.c b/xen/arch/arm/alternative.c index a3bcda3117..9ffdc475d6 100644 --- a/xen/arch/arm/alternative.c +++ b/xen/arch/arm/alternative.c @@ -46,17 +46,17 @@ struct alt_region { /* * Check if the target PC is within an alternative block. */ -static bool_t branch_insn_requires_update(const struct alt_instr *alt, - unsigned long pc) +static bool branch_insn_requires_update(const struct alt_instr *alt, + unsigned long pc) { unsigned long replptr; if ( is_active_kernel_text(pc) ) - return 1; + return true; replptr = (unsigned long)ALT_REPL_PTR(alt); if ( pc >= replptr && pc <= (replptr + alt->alt_len) ) - return 0; + return false; /* * Branching into *another* alternate sequence is doomed, and -- 2.39.5