]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Drop useless check when parsing cpu scheduler info
authorPeter Krempa <pkrempa@redhat.com>
Mon, 19 Oct 2015 12:36:14 +0000 (14:36 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 24 Nov 2015 12:42:55 +0000 (13:42 +0100)
commit5ba01683b6882601478b24212ebbb8d6fd7e00a4
tree03b5ac816813c61f95b382082ce625f9b830f5a9
parent668a0fef42e0127a7617d15b75c1693c7c72fcda
conf: Drop useless check when parsing cpu scheduler info

The checked predicate is a deduction from the following checks:

1) maximum cpu id is checked for every parsed <vcpusched> element
2) the resulting bitmaps are checked for overlaps
3) there has to be at least one cpu per <vcpusched>

From the above checks we can indeed deduce that if we have one
<vcpusched> element per CPU we will have at most 'maxvcpus' of them.

Drop the explicit check since it's redundant.
src/conf/domain_conf.c