]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBuildNumaArgStr: Discard def->cpu check
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 23 Sep 2014 11:08:39 +0000 (13:08 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 23 Sep 2014 11:08:39 +0000 (13:08 +0200)
commitde31dcc89a0dd7a4c817c28bab0fbbd98562a4ea
tree52b72c4ceb77fc5b8dec19287629adebf7a351fc
parentf8857c8f88ece3bb0790436e42751c2a09ae4453
qemuBuildNumaArgStr: Discard def->cpu check

In the function at one place we check if def->cpu is NULL prior
to accessing def->cpu->ncells. Then, later in the code,
def->cpu->ncells is accessed directly, without the check. This
makes coverity unhappy, because the first check makes it think
def->cpu can be NULL. However, the function is not called if
def->cpu is NULL. Therefore, remove the first check and hopefully
make coverity cheer again.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_command.c