Commit ebb6639f authored by Felipe Balbi's avatar Felipe Balbi Committed by Kamal Mostafa

cgroup: fix compile warning

BugLink: http://bugs.launchpad.net/bugs/1584163

commit 4f41fc59 ("cgroup, kernfs: make mountinfo
 show properly scoped path for cgroup namespaces")
 added the following compile warning:

kernel/cgroup.c: In function ‘cgroup_show_path’:
kernel/cgroup.c:1634:15: warning: unused variable ‘ret’ [-Wunused-variable]
  int len = 0, ret = 0;
               ^
fix it.

Fixes: 4f41fc59 ("cgroup, kernfs: make mountinfo show properly scoped path for cgroup namespaces")
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
(cherry picked from commit 09be4c82)
Cc: Serge Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
parent 124128d4
......@@ -1627,7 +1627,7 @@ static int rebind_subsystems(struct cgroup_root *dst_root,
static int cgroup_show_path(struct seq_file *sf, struct kernfs_node *kf_node,
struct kernfs_root *kf_root)
{
int len = 0, ret = 0;
int len = 0;
char *buf = NULL;
struct cgroup_root *kf_cgroot = cgroup_root_from_kf(kf_root);
struct cgroup *ns_cgroup;
......
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