]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virHostValidateSecureGuests: Drop useless 'return 0' at the end
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 8 Jun 2021 07:39:33 +0000 (09:39 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 9 Jun 2021 06:23:28 +0000 (08:23 +0200)
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@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Fabiano Fidêncio <fabiano@fidencio.org>
tools/virt-host-validate-common.c

index 9ec4e6f00b5f330e4badc30245c6f5731200299c..8ce45609e7e2cfdcbf5d2d060a1150c1b6193392 100644 (file)
@@ -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);
 }