memcg: fix build warning and avoid checking for mem != null again and again
authorNikanth Karthikesan <knikanth@suse.de>
Thu, 28 May 2009 21:34:41 +0000 (14:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 29 May 2009 15:40:03 +0000 (08:40 -0700)
commit46f7e602fb32e02145ef14f8c0ca6d399f0a96b9
tree3db67ceec30ffc1ababad1d79c11ba8a61fa037c
parentf83a275dbc5ca1721143698e844243fcadfabf6a
memcg: fix build warning and avoid checking for mem != null again and again

Fix build warning, "mem_cgroup_is_obsolete defined but not used" when
CONFIG_DEBUG_VM is not set.  Also avoid checking for !mem again and again.

Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c