blkcg: remove redundant code in blkcg_css_free()
Subsystems (3)
PATCH 1/1 blkcg: remove redundant code in blkcg_css_free()
The check was needed only when we supported modular cgroup subsystem.
Signed-off-by Zefan Li <[email protected]>
--- block/blk-cgroup.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
block/blk-cgroup.c +1 -3
@@ -814,9 +814,7 @@ static void blkcg_css_offline(struct cgroup_subsys_state *css)static void blkcg_css_free (struct cgroup_subsys_state *css) {struct blkcg *blkcg =css_to_blkcg (css); - -if (blkcg != &blkcg_root) -kfree (blkcg); +kfree (blkcg); } static struct cgroup_subsys_state *
Signature · 1 line
1.9.1
Quoted 3 lines · Zefan Li
The check was needed only when we supported modular cgroup subsystem.
Signed-off-by Zefan Li <[email protected]>
Acked-by Tejun Heo <[email protected]>
Jens, can you please take this patch or shall I route it through the cgroup tree?
Thanks.
Signature · 1 line
tejun