lkml.org 
[lkml]   [2018]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] kvm/eventfd : unnecessory conversion to bool
Date
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
\
 
 \ /
  Last update: 2018-12-27 07:02    [W:0.045 / U:1.264 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site