* [PATCH] KVM: MIPS: use true,false for bool variable
@ 2020-04-29 14:09 Jason Yan
2020-05-14 7:43 ` Thomas Bogendoerfer
0 siblings, 1 reply; 2+ messages in thread
From: Jason Yan @ 2020-04-29 14:09 UTC (permalink / raw)
To: tsbogend, pbonzini, sean.j.christopherson, linux-mips, kvm, linux-kernel
Cc: Jason Yan
Fix the following coccicheck warning:
arch/mips/kvm/mips.c:82:1-28: WARNING: Assignment of 0/1 to bool
variable
arch/mips/kvm/mips.c:88:1-28: WARNING: Assignment of 0/1 to bool
variable
Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
arch/mips/kvm/mips.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/mips/kvm/mips.c b/arch/mips/kvm/mips.c
index 9f50ceef9978..44eb36b1dbd8 100644
--- a/arch/mips/kvm/mips.c
+++ b/arch/mips/kvm/mips.c
@@ -79,13 +79,13 @@ bool kvm_trace_guest_mode_change;
int kvm_guest_mode_change_trace_reg(void)
{
- kvm_trace_guest_mode_change = 1;
+ kvm_trace_guest_mode_change = true;
return 0;
}
void kvm_guest_mode_change_trace_unreg(void)
{
- kvm_trace_guest_mode_change = 0;
+ kvm_trace_guest_mode_change = false;
}
/*
--
2.21.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] KVM: MIPS: use true,false for bool variable
2020-04-29 14:09 [PATCH] KVM: MIPS: use true,false for bool variable Jason Yan
@ 2020-05-14 7:43 ` Thomas Bogendoerfer
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Bogendoerfer @ 2020-05-14 7:43 UTC (permalink / raw)
To: Jason Yan; +Cc: pbonzini, sean.j.christopherson, linux-mips, kvm, linux-kernel
On Wed, Apr 29, 2020 at 10:09:35PM +0800, Jason Yan wrote:
> Fix the following coccicheck warning:
>
> arch/mips/kvm/mips.c:82:1-28: WARNING: Assignment of 0/1 to bool
> variable
> arch/mips/kvm/mips.c:88:1-28: WARNING: Assignment of 0/1 to bool
> variable
>
> Signed-off-by: Jason Yan <yanaijie@huawei.com>
> ---
> arch/mips/kvm/mips.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
applied to mips-next.
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-14 7:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-29 14:09 [PATCH] KVM: MIPS: use true,false for bool variable Jason Yan
2020-05-14 7:43 ` Thomas Bogendoerfer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.