]> xenbits.xensource.com Git - libvirt.git/commit
numa_conf: Make virDomainNumaSetNodeCpumask() return void
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 27 May 2020 09:49:51 +0000 (11:49 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 8 Jul 2020 10:05:24 +0000 (12:05 +0200)
commit1050c6beb1f2238cd847d93eab17d658720b08e1
tree9eae13f0ec1e31fc51e579b7806f1e6fd0a5c60f
parentfe43b3a5a5532377f7de40e77ca9ffde5aa2ca7e
numa_conf: Make virDomainNumaSetNodeCpumask() return void

There is only one caller of virDomainNumaSetNodeCpumask() which
checks for the return value but because the function will return
NULL iff the @cpumask was NULL in the first place. But in that
place @cpumask can't be NULL because it was just allocated by
virBitmapParse().

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/conf/numa_conf.c
src/conf/numa_conf.h
src/libxl/xen_xl.c