summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2016-05-12 12:34:38 +0300
committerMichael Bestas <mkbestas@lineageos.org>2022-04-19 00:51:03 +0300
commit18a0a15c4572d53ff10bb59b76fd010b10d34f44 (patch)
tree0d75f6d913d35002fdd9b80bfa9bcac7ea4ec69e /kernel
parent59e20db6750e4d50c127e67cf75a3cf436cc6f1e (diff)
cgroup: fix compile warning
commit 4f41fc59620f ("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: 4f41fc59620f ("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> Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 5e4722aac0e0..9fb689e7fcbe 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -1632,7 +1632,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,
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;