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>
This commit is contained in:
Gustavo A. R. Silva 2018-08-07 18:59:57 -05:00 committed by Will Deacon
parent dcab90d909
commit 3c4d9137ee
1 changed files with 2 additions and 2 deletions

View File

@ -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