don't check flags in virDomainSetSchedulerParametersFlags

drivers implementing domainSetSchedulerParametersFlags should check
flags themselves.
This commit is contained in:
Hu Tao 2011-05-18 10:34:20 +08:00 committed by Eric Blake
parent 3aab7f2d6b
commit 83ea7c1b76

View File

@ -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);