All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]  kvm/eventfd : unnecessory conversion to bool
@ 2018-12-27  6:22 Peng Hao
  2019-01-11 13:42 ` Radim Krčmář
  0 siblings, 1 reply; 2+ messages in thread
From: Peng Hao @ 2018-12-27  6:22 UTC (permalink / raw)
  To: pbonzini, rkrcmar; +Cc: kvm, linux-kernel, Peng Hao

Conversion to bool is not needed in ioeventfd_in_range.

Signed-off-by: Peng Hao <peng.hao2@zte.com.cn>
---
 virt/kvm/eventfd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c
index b20b751..d4cdc9c 100644
--- a/virt/kvm/eventfd.c
+++ b/virt/kvm/eventfd.c
@@ -723,7 +723,7 @@ struct _ioeventfd {
 		return false;
 	}
 
-	return _val == p->datamatch ? true : false;
+	return _val == p->datamatch;
 }
 
 /* MMIO/PIO writes trigger an event if the addr/val match */
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH]  kvm/eventfd : unnecessory conversion to bool
  2018-12-27  6:22 [PATCH] kvm/eventfd : unnecessory conversion to bool Peng Hao
@ 2019-01-11 13:42 ` Radim Krčmář
  0 siblings, 0 replies; 2+ messages in thread
From: Radim Krčmář @ 2019-01-11 13:42 UTC (permalink / raw)
  To: Peng Hao; +Cc: pbonzini, kvm, linux-kernel

2018-12-27 14:22+0800, Peng Hao:
> Conversion to bool is not needed in ioeventfd_in_range.
> 
> Signed-off-by: Peng Hao <peng.hao2@zte.com.cn>
> ---

Fixed the typo in subject and queued, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-11 13:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-27  6:22 [PATCH] kvm/eventfd : unnecessory conversion to bool Peng Hao
2019-01-11 13:42 ` Radim Krčmář

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.