Skip to content

Commit

Permalink
memcg: remove redundant returns
Browse files Browse the repository at this point in the history
Remove redundant returns from ends of functions, and one blank line.

Signed-off-by: Hugh Dickins <[email protected]>
Reviewed-by: KOSAKI Motohiro <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Acked-by: KAMEZAWA Hiroyuki <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Hugh Dickins authored and torvalds committed Mar 22, 2012
1 parent f156ab9 commit 1f2b71f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mm/memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -1391,7 +1391,6 @@ void mem_cgroup_print_oom_info(struct mem_cgroup *memcg, struct task_struct *p)
if (!memcg || !p)
return;


rcu_read_lock();

mem_cgrp = memcg->css.cgroup;
Expand Down Expand Up @@ -1926,7 +1925,6 @@ void mem_cgroup_update_page_stat(struct page *page,
if (unlikely(need_unlock))
move_unlock_page_cgroup(pc, &flags);
rcu_read_unlock();
return;
}
EXPORT_SYMBOL(mem_cgroup_update_page_stat);

Expand Down Expand Up @@ -2912,7 +2910,6 @@ static void mem_cgroup_do_uncharge(struct mem_cgroup *memcg,
res_counter_uncharge(&memcg->memsw, nr_pages * PAGE_SIZE);
if (unlikely(batch->memcg != memcg))
memcg_oom_recover(memcg);
return;
}

/*
Expand Down Expand Up @@ -3937,7 +3934,6 @@ static void memcg_get_hierarchical_limit(struct mem_cgroup *memcg,
out:
*mem_limit = min_limit;
*memsw_limit = min_memsw_limit;
return;
}

static int mem_cgroup_reset(struct cgroup *cont, unsigned int event)
Expand Down

0 comments on commit 1f2b71f

Please sign in to comment.