coverity: #1435208

Unused value Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent a8558cda
...@@ -2005,7 +2005,8 @@ static int cg_legacy_mount_controllers(int type, struct hierarchy *h, ...@@ -2005,7 +2005,8 @@ static int cg_legacy_mount_controllers(int type, struct hierarchy *h,
controllerpath, controllerpath,
flags | MS_REMOUNT); flags | MS_REMOUNT);
ret = mount(controllerpath, controllerpath, "cgroup", ret = mount(controllerpath, controllerpath, "cgroup",
MS_REMOUNT | MS_BIND | MS_RDONLY, NULL); remount_flags | MS_REMOUNT | MS_BIND | MS_RDONLY,
NULL);
if (ret < 0) { if (ret < 0) {
SYSERROR("Failed to remount \"%s\" ro", controllerpath); SYSERROR("Failed to remount \"%s\" ro", controllerpath);
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment