diff options
author | Kirill A. Shutemov <kirill@shutemov.name> | 2012-04-12 12:49:11 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-04-12 13:12:11 -0700 |
commit | d833049bd20570cbbadeb5228c579f9f3aaa4e03 (patch) | |
tree | 2995af0705ce161cba50739048e90b89ea3991e2 /mm/memcontrol.c | |
parent | 6252efcc3626bdcde1c1c2d8a83be0bc66b8cc2c (diff) | |
download | linux-3.10-d833049bd20570cbbadeb5228c579f9f3aaa4e03.tar.gz linux-3.10-d833049bd20570cbbadeb5228c579f9f3aaa4e03.tar.bz2 linux-3.10-d833049bd20570cbbadeb5228c579f9f3aaa4e03.zip |
memcg: fix broken boolen expression
action != CPU_DEAD || action != CPU_DEAD_FROZEN is always true.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r-- | mm/memcontrol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 7d698df4a06..ea1e879b2db 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -2165,7 +2165,7 @@ static int __cpuinit memcg_cpu_hotplug_callback(struct notifier_block *nb, if (action == CPU_ONLINE) return NOTIFY_OK; - if ((action != CPU_DEAD) || action != CPU_DEAD_FROZEN) + if (action != CPU_DEAD && action != CPU_DEAD_FROZEN) return NOTIFY_OK; for_each_mem_cgroup(iter) |