]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hugetlb/cgroup: remove unnecessary NULL checks
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Sat, 21 Jul 2012 00:54:01 +0000 (10:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Jul 2012 03:02:24 +0000 (13:02 +1000)
commite9091371eecd7e1adb96cbf7f57e4e2d6278e803
tree92ed4e83c64fbb031492ae5cc57745196ce84982
parent5d1c8927408616362db7977ed18b8792ec8c1c5d
hugetlb/cgroup: remove unnecessary NULL checks

cgroup_subsys_state can never be NULL, so don't check for that in
hugetlb_cgroup_from_css.  Also current task will always be part of some
cgroup.  So hugetlb_cgrop_from_task cannot return NULL.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb_cgroup.c