From: Michal Privoznik Date: Tue, 8 Jun 2021 07:39:33 +0000 (+0200) Subject: virHostValidateSecureGuests: Drop useless 'return 0' at the end X-Git-Tag: v7.5.0-rc1~175 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=85ea510624fd6847104206f9e6ccfcd00249e755;p=thirdparty%2Flibvirt.git virHostValidateSecureGuests: Drop useless 'return 0' at the end 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 Reviewed-by: Ján Tomko Reviewed-by: Fabiano Fidêncio --- 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); }