Commit b154a017 authored by Shida Zhang's avatar Shida Zhang Committed by Tejun Heo
Browse files

cgroup: remove the superfluous judgment



Remove the superfluous judgment since the function is
never called for a root cgroup, as suggested by Tejun.

Suggested-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarShida Zhang <zhangshida@kylinos.cn>
Reviewed-by: default avatarMichal Koutný <mkoutny@suse.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 29ed1738
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5685,7 +5685,7 @@ static int cgroup_destroy_locked(struct cgroup *cgrp)
	css_clear_dir(&cgrp->self);
	kernfs_remove(cgrp->kn);

	if (parent && cgroup_is_threaded(cgrp))
	if (cgroup_is_threaded(cgrp))
		parent->nr_threaded_children--;

	spin_lock_irq(&css_set_lock);