diff options
| author | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-05-12 05:34:38 -0400 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2016-05-12 11:05:27 -0400 |
| commit | 09be4c824ebdbf3c043a07d2d9537a0164a1ecfe (patch) | |
| tree | 6bac891b90ab6246aeea02b814c8987992baf9aa /kernel | |
| parent | 3cc9b23c8137e9bb4eaf6d97d825b7f0dc711d0c (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>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index afea39eb7649..86cb5c6e8932 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
| @@ -1631,7 +1631,7 @@ static int rebind_subsystems(struct cgroup_root *dst_root, u16 ss_mask) | |||
| 1631 | static int cgroup_show_path(struct seq_file *sf, struct kernfs_node *kf_node, | 1631 | static int cgroup_show_path(struct seq_file *sf, struct kernfs_node *kf_node, |
| 1632 | struct kernfs_root *kf_root) | 1632 | struct kernfs_root *kf_root) |
| 1633 | { | 1633 | { |
| 1634 | int len = 0, ret = 0; | 1634 | int len = 0; |
| 1635 | char *buf = NULL; | 1635 | char *buf = NULL; |
| 1636 | struct cgroup_root *kf_cgroot = cgroup_root_from_kf(kf_root); | 1636 | struct cgroup_root *kf_cgroot = cgroup_root_from_kf(kf_root); |
| 1637 | struct cgroup *ns_cgroup; | 1637 | struct cgroup *ns_cgroup; |
