xen/arm: guest_walk_tables: Switch the return to bool
authorJulien Grall <julien.grall@arm.com>
Mon, 8 Oct 2018 18:33:40 +0000 (19:33 +0100)
committerJulien Grall <julien.grall@arm.com>
Thu, 22 Nov 2018 14:17:33 +0000 (14:17 +0000)
commit9d04af3c7cce5b76a733d255baa6933b4092f961
tree490599683ba4d4f241a4752f84740d0b0858dddf
parentf4ac5a9bd044c0cc54531a82d7eb5b2f2ce89853
xen/arm: guest_walk_tables: Switch the return to bool

At the moment, guest_walk_tables can either return 0, -EFAULT, -EINVAL.
The use of the last 2 are not clearly defined and used inconsistently in
the code. The current only caller does not care about the return
value and the value of it seems very limited (no way to differentiate
between the 15ish error paths).

So switch to bool to simplify the return and make the developer life a
bit easier.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/guest_walk.c
xen/arch/arm/mem_access.c
xen/include/asm-arm/guest_walk.h