memcg: remove impossible conditional when committing
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 23 Mar 2011 23:42:23 +0000 (16:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Mar 2011 02:46:24 +0000 (19:46 -0700)
commitc14f35c70e068392ccae0b2d6f755baea5eed4d6
tree1e3265ba63a859ee0b45ae89303afea4de19012c
parent3403968d7a7dc373901cad0cad56b3afcb09cc50
memcg: remove impossible conditional when committing

No callsite ever passes a NULL pointer for a struct mem_cgroup * to the
committing function.  There is no need to check for it.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Cc: Minchan Kim <minchan.kim@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c