Signed-off-by: Ryan Moeller <r...@ixsystems.com>
---
 src/bhyve/bhyve_monitor.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/bhyve/bhyve_monitor.c b/src/bhyve/bhyve_monitor.c
index b9ad4520d9..0e55e19772 100644
--- a/src/bhyve/bhyve_monitor.c
+++ b/src/bhyve/bhyve_monitor.c
@@ -130,7 +130,6 @@ bhyveMonitorOpen(virDomainObjPtr vm, bhyveConnPtr driver)
 {
     bhyveMonitorPtr mon = NULL;
     struct kevent kev;
-    int rc;
 
     if (VIR_ALLOC(mon) < 0)
         return NULL;
@@ -145,8 +144,7 @@ bhyveMonitorOpen(virDomainObjPtr vm, bhyveConnPtr driver)
     }
 
     EV_SET(&kev, vm->pid, EVFILT_PROC, EV_ADD, NOTE_EXIT, 0, mon);
-    rc = kevent(mon->kq, &kev, 1, NULL, 0, NULL);
-    if (rc < 0) {
+    if (kevent(mon->kq, &kev, 1, NULL, 0, NULL) < 0) {
         virReportError(VIR_ERR_SYSTEM_ERROR, "%s",
                        _("Unable to register process kevent"));
         goto cleanup;
-- 
2.24.1


Reply via email to