The return value of cgroup_rm_cftypes_locked() is always 0. So remove
it to simplify the code. No functional change intended.
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
        return ret;
 }
 
-static int cgroup_rm_cftypes_locked(struct cftype *cfts)
+static void cgroup_rm_cftypes_locked(struct cftype *cfts)
 {
        lockdep_assert_held(&cgroup_mutex);
 
        list_del(&cfts->node);
        cgroup_apply_cftypes(cfts, false);
        cgroup_exit_cftypes(cfts);
-       return 0;
 }
 
 /**
  */
 int cgroup_rm_cftypes(struct cftype *cfts)
 {
-       int ret;
-
        if (!cfts || cfts[0].name[0] == '\0')
                return 0;
 
                return -ENOENT;
 
        cgroup_lock();
-       ret = cgroup_rm_cftypes_locked(cfts);
+       cgroup_rm_cftypes_locked(cfts);
        cgroup_unlock();
-       return ret;
+       return 0;
 }
 
 /**