cgroup: fix compile warning
commit4f41fc5962
("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:4f41fc5962
("cgroup, kernfs: make mountinfo show properly scoped path for cgroup namespaces") Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
3cc9b23c81
commit
09be4c824e
|
@ -1631,7 +1631,7 @@ static int rebind_subsystems(struct cgroup_root *dst_root, u16 ss_mask)
|
||||||
static int cgroup_show_path(struct seq_file *sf, struct kernfs_node *kf_node,
|
static int cgroup_show_path(struct seq_file *sf, struct kernfs_node *kf_node,
|
||||||
struct kernfs_root *kf_root)
|
struct kernfs_root *kf_root)
|
||||||
{
|
{
|
||||||
int len = 0, ret = 0;
|
int len = 0;
|
||||||
char *buf = NULL;
|
char *buf = NULL;
|
||||||
struct cgroup_root *kf_cgroot = cgroup_root_from_kf(kf_root);
|
struct cgroup_root *kf_cgroot = cgroup_root_from_kf(kf_root);
|
||||||
struct cgroup *ns_cgroup;
|
struct cgroup *ns_cgroup;
|
||||||
|
|
Loading…
Reference in New Issue