diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 6454fb32c5daed..f3aeeb26f06ddc 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -3132,11 +3132,11 @@ __always_inline struct obj_cgroup *current_obj_cgroup(void) * to use the objcg by the current task. */ return objcg; - } else { - memcg = this_cpu_read(int_active_memcg); - if (unlikely(memcg)) - goto from_memcg; } + + memcg = this_cpu_read(int_active_memcg); + if (unlikely(memcg)) + goto from_memcg; return NULL; from_memcg: