From: Gustavo A. R. Silva Date: Tue, 7 Aug 2018 23:59:57 +0000 (-0500) Subject: arm64: alternative: Use true and false for boolean values X-Git-Tag: v4.14.189~66 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=072c638a2eb363d767c8bea1b9559ac0bdb389cf;p=users%2Fdwmw2%2Flinux.git arm64: alternative: Use true and false for boolean values [ Upstream commit 3c4d9137eefecf273a520d392071ffc9df0a9a7a ] 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 Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- diff --git a/arch/arm64/kernel/alternative.c b/arch/arm64/kernel/alternative.c index 5c4bce4ac381a..b9045d8d05d88 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