mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-05 12:35:20 +00: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.");
|
"disabled in firemare.");
|
||||||
return VIR_HOST_VALIDATE_FAILURE(level);
|
return VIR_HOST_VALIDATE_FAILURE(level);
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
|
||||||
virHostMsgFail(level,
|
virHostMsgFail(level,
|
||||||
"Unknown if this platform has Secure Guest support");
|
"Unknown if this platform has Secure Guest support");
|
||||||
return VIR_HOST_VALIDATE_FAILURE(level);
|
return VIR_HOST_VALIDATE_FAILURE(level);
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user