mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
don't check flags in virDomainSetSchedulerParametersFlags
drivers implementing domainSetSchedulerParametersFlags should check flags themselves.
This commit is contained in:
parent
3aab7f2d6b
commit
83ea7c1b76
@ -5551,14 +5551,6 @@ virDomainSetSchedulerParametersFlags(virDomainPtr domain,
|
||||
|
||||
virResetLastError();
|
||||
|
||||
if (!(flags & (VIR_DOMAIN_SCHEDPARAM_LIVE |
|
||||
VIR_DOMAIN_SCHEDPARAM_CONFIG |
|
||||
VIR_DOMAIN_SCHEDPARAM_CURRENT))) {
|
||||
virLibDomainError(VIR_ERR_INVALID_ARG, __FUNCTION__);
|
||||
virDispatchError(NULL);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!VIR_IS_CONNECTED_DOMAIN(domain)) {
|
||||
virLibDomainError(VIR_ERR_INVALID_DOMAIN, __FUNCTION__);
|
||||
virDispatchError(NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user