mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
lib: setvcpus: Remove bogus flag check
Since VIR_DOMAIN_AFFECT_CURRENT is 0 the flag check does not make sense as masking @flags with 0 will always equal to false.
This commit is contained in:
parent
5c9fc1c11f
commit
1d0fc8083c
@ -7267,12 +7267,6 @@ virDomainSetVcpusFlags(virDomainPtr domain, unsigned int nvcpus,
|
||||
VIR_DOMAIN_AFFECT_CONFIG,
|
||||
error);
|
||||
|
||||
VIR_EXCLUSIVE_FLAGS_GOTO(VIR_DOMAIN_AFFECT_CURRENT,
|
||||
VIR_DOMAIN_AFFECT_LIVE,
|
||||
error);
|
||||
VIR_EXCLUSIVE_FLAGS_GOTO(VIR_DOMAIN_AFFECT_CURRENT,
|
||||
VIR_DOMAIN_AFFECT_CONFIG,
|
||||
error);
|
||||
VIR_EXCLUSIVE_FLAGS_GOTO(VIR_DOMAIN_VCPU_GUEST,
|
||||
VIR_DOMAIN_AFFECT_CONFIG,
|
||||
error);
|
||||
|
Loading…
Reference in New Issue
Block a user