From 8186c5c7c3bca23f7cfcc4a3fb867ba88add1a8e Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sun, 29 Apr 2018 00:21:33 +0200 Subject: [PATCH] coverity: #1435208 Unused value Signed-off-by: Christian Brauner --- src/lxc/cgroups/cgfsng.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 18d04ea25..fb5e508db 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -2027,7 +2027,8 @@ static int cg_legacy_mount_controllers(int type, struct hierarchy *h, controllerpath, flags | MS_REMOUNT); ret = mount(controllerpath, controllerpath, "cgroup", - MS_REMOUNT | MS_BIND | MS_RDONLY, NULL); + remount_flags | MS_REMOUNT | MS_BIND | MS_RDONLY, + NULL); if (ret < 0) { SYSERROR("Failed to remount \"%s\" ro", controllerpath); return -1;