[PATCH 5/5] virHostValidateSecureGuests: Drop useless 'return 0' at the end

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Previous patches rendered 'return 0' at the end of the function a
dead code. Therefore, the code can be rearranged a bit and the
line can be dropped.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 tools/virt-host-validate-common.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/tools/virt-host-validate-common.c b/tools/virt-host-validate-common.c
index 9ec4e6f00b..8ce45609e7 100644
--- a/tools/virt-host-validate-common.c
+++ b/tools/virt-host-validate-common.c
@@ -517,11 +517,9 @@ int virHostValidateSecureGuests(const char *hvname,
                            "disabled in firemare.");
             return VIR_HOST_VALIDATE_FAILURE(level);
         }
-    } else {
-        virHostMsgFail(level,
-                       "Unknown if this platform has Secure Guest support");
-        return VIR_HOST_VALIDATE_FAILURE(level);
     }
 
-    return 0;
+    virHostMsgFail(level,
+                   "Unknown if this platform has Secure Guest support");
+    return VIR_HOST_VALIDATE_FAILURE(level);
 }
-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux