projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0823cb
)
KVM: arm: Use true and false for boolean values
author
Gustavo A. R. Silva
<gustavo@embeddedor.com>
Wed, 8 Aug 2018 00:04:40 +0000
(19:04 -0500)
committer
Marc Zyngier
<marc.zyngier@arm.com>
Sun, 12 Aug 2018 11:17:51 +0000
(12:17 +0100)
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: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/include/asm/kvm_emulate.h
patch
|
blob
|
history
diff --git
a/arch/arm/include/asm/kvm_emulate.h
b/arch/arm/include/asm/kvm_emulate.h
index
b50fe83
..
2b7eed2
100644
(file)
--- a/
arch/arm/include/asm/kvm_emulate.h
+++ b/
arch/arm/include/asm/kvm_emulate.h
@@
-119,7
+119,7
@@
static inline void vcpu_set_wfe_traps(struct kvm_vcpu *vcpu)
static inline bool vcpu_mode_is_32bit(const struct kvm_vcpu *vcpu)
{
- return
1
;
+ return
true
;
}
static inline unsigned long *vcpu_pc(struct kvm_vcpu *vcpu)