From ef87d601207f97990a2593692c1a61e7824dae43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Mon, 3 Aug 2020 13:06:54 +0200 Subject: [PATCH] util: cgroup: remove unused opts in virCgroupV2BindMount MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In virCgroupV2BindMount there is an unused variable containing what seem to be tmpfs mount options. Delete it. Unlike with cgroups v1, we do not create a tmpfs here. Signed-off-by: Ján Tomko Reviewed-by: Pavel Hrdina --- src/util/vircgroupv2.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/util/vircgroupv2.c b/src/util/vircgroupv2.c index 6b9c5eed70..ddbe3d6663 100644 --- a/src/util/vircgroupv2.c +++ b/src/util/vircgroupv2.c @@ -548,9 +548,8 @@ virCgroupV2KillRecursive(virCgroupPtr group, static int virCgroupV2BindMount(virCgroupPtr group, const char *oldroot, - const char *mountopts) + const char *mountopts G_GNUC_UNUSED) { - g_autofree char *opts = NULL; g_autofree char *src = NULL; VIR_DEBUG("Mounting cgroups at '%s'", group->unified.mountPoint); @@ -561,8 +560,6 @@ virCgroupV2BindMount(virCgroupPtr group, return -1; } - opts = g_strdup_printf("mode=755,size=65536%s", mountopts); - src = g_strdup_printf("%s%s", oldroot, group->unified.mountPoint); if (mount(src, group->unified.mountPoint, "none", MS_BIND, NULL) < 0) {