diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-07 18:59:57 -0500 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-08-08 11:20:54 +0100 |
commit | 3c4d9137eefecf273a520d392071ffc9df0a9a7a (patch) | |
tree | 318d25f67ccdb47fe883123a12a2a45531d9f22b | |
parent | dcab90d90935f990407c86b671a7f1ac285d106c (diff) |
arm64: alternative: Use true and false for boolean values
Return statements in functions returning bool should use true or false
instead of an integer value. This code was detected with the help of
Coccinelle.
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r-- | arch/arm64/kernel/alternative.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/kernel/alternative.c b/arch/arm64/kernel/alternative.c index 36fb069fd049..b5d603992d40 100644 --- a/arch/arm64/kernel/alternative.c +++ b/arch/arm64/kernel/alternative.c @@ -47,11 +47,11 @@ static bool branch_insn_requires_update(struct alt_instr *alt, unsigned long pc) unsigned long replptr; if (kernel_text_address(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 |