]> xenbits.xensource.com Git - libvirt.git/commitdiff
virt-host-validate-bhyve.c: Reintroduce @ret to virHostValidateBhyve()
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 5 May 2020 12:34:00 +0000 (14:34 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 5 May 2020 12:45:58 +0000 (14:45 +0200)
This partially reverts fe65e9c8b50c9029cba0e8c386162d293cd443d2.

In the referenced commit I removed @ret from
virHostValidateBhyve() thinking it wasn't used when in fact it is
- it's usage is hidden under MODULE_STATUS_WARN(). Reintroduce
the variable back.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
tools/virt-host-validate-bhyve.c

index 3e8cc59a38ba2521dd118451e778025d886c1f7e..2f0ec1e36cabfde408dd11a7669ca72419656928 100644 (file)
@@ -47,6 +47,7 @@
 
 int virHostValidateBhyve(void)
 {
+    int ret = 0;
     int fileid = 0;
     struct kld_file_stat stat;
     bool vmm_loaded = false, if_tap_loaded = false;
@@ -72,5 +73,5 @@ int virHostValidateBhyve(void)
     MODULE_STATUS_WARN(if_bridge, "bridged networking will not work");
     MODULE_STATUS_WARN(nmdm, "nmdm console will not work");
 
-    return 0;
+    return ret;
 }