]> xenbits.xensource.com Git - xen.git/commitdiff
arm/alternative.c: switch to plain bool
authorWei Liu <wei.liu2@citrix.com>
Fri, 15 Sep 2017 09:06:55 +0000 (10:06 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 15 Sep 2017 15:28:07 +0000 (16:28 +0100)
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/alternative.c

index a3bcda31174bc7f3d5933e97131858f91370b597..9ffdc475d63753ee2fe83712cfae88c523888e17 100644 (file)
@@ -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