mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
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 <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Fabiano Fidêncio <fabiano@fidencio.org>
This commit is contained in:
parent
853228c022
commit
85ea510624
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user