Commit 3c4d9137 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Will Deacon
Browse files

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: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent dcab90d9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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