mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
qemu_cgroup: remove unused @empty variable
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
82bebba180
commit
382071b8bf
@ -988,7 +988,6 @@ static void
|
|||||||
qemuRestoreCgroupState(virDomainObjPtr vm)
|
qemuRestoreCgroupState(virDomainObjPtr vm)
|
||||||
{
|
{
|
||||||
g_autofree char *mem_mask = NULL;
|
g_autofree char *mem_mask = NULL;
|
||||||
int empty = -1;
|
|
||||||
qemuDomainObjPrivatePtr priv = vm->privateData;
|
qemuDomainObjPrivatePtr priv = vm->privateData;
|
||||||
size_t i = 0;
|
size_t i = 0;
|
||||||
g_autoptr(virBitmap) all_nodes = NULL;
|
g_autoptr(virBitmap) all_nodes = NULL;
|
||||||
@ -1003,8 +1002,8 @@ qemuRestoreCgroupState(virDomainObjPtr vm)
|
|||||||
if (!(mem_mask = virBitmapFormat(all_nodes)))
|
if (!(mem_mask = virBitmapFormat(all_nodes)))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
if ((empty = virCgroupHasEmptyTasks(priv->cgroup,
|
if (virCgroupHasEmptyTasks(priv->cgroup,
|
||||||
VIR_CGROUP_CONTROLLER_CPUSET)) <= 0)
|
VIR_CGROUP_CONTROLLER_CPUSET) <= 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
if (virCgroupSetCpusetMems(priv->cgroup, mem_mask) < 0)
|
if (virCgroupSetCpusetMems(priv->cgroup, mem_mask) < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user