diff options
author | Joe Perches <joe@perches.com> | 2015-03-30 16:46:04 -0700 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-03-31 14:19:47 +1100 |
commit | acdb66857fb9a713c93bb3e6edba5ee478ba0678 (patch) | |
tree | eb1fd2cf6064c4592072915b22856b5f96d47316 /arch/powerpc/include/asm/kvm_book3s_64.h | |
parent | 4cd968ef4249fde24194b7b9a74be87dd7f8ed0f (diff) | |
download | blackbird-op-linux-acdb66857fb9a713c93bb3e6edba5ee478ba0678.tar.gz blackbird-op-linux-acdb66857fb9a713c93bb3e6edba5ee478ba0678.zip |
powerpc: Use bool function return values of true/false not 1/0
Use the normal return values for bool functions
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/kvm_book3s_64.h')
-rw-r--r-- | arch/powerpc/include/asm/kvm_book3s_64.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/kvm_book3s_64.h b/arch/powerpc/include/asm/kvm_book3s_64.h index 2d81e202bdcc..2a244bf869c0 100644 --- a/arch/powerpc/include/asm/kvm_book3s_64.h +++ b/arch/powerpc/include/asm/kvm_book3s_64.h @@ -335,7 +335,7 @@ static inline bool hpte_read_permission(unsigned long pp, unsigned long key) { if (key) return PP_RWRX <= pp && pp <= PP_RXRX; - return 1; + return true; } static inline bool hpte_write_permission(unsigned long pp, unsigned long key) @@ -373,7 +373,7 @@ static inline bool slot_is_aligned(struct kvm_memory_slot *memslot, unsigned long mask = (pagesize >> PAGE_SHIFT) - 1; if (pagesize <= PAGE_SIZE) - return 1; + return true; return !(memslot->base_gfn & mask) && !(memslot->npages & mask); } |