cgroup: remove unneeded checks
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 9 Aug 2017 10:25:21 +0000 (13:25 +0300)
committerTejun Heo <tj@kernel.org>
Fri, 11 Aug 2017 17:33:28 +0000 (10:33 -0700)
commit696b98f244f77a79840bf420861c996d61c82637
tree8085a1bfa4e633ecc489c9ea9d9ffa690b12620f
parent3e48930cc74f0c212ee1838f89ad0ca7fcf2fea1
cgroup: remove unneeded checks

"descendants" and "depth" are declared as int, so they can't be larger
than INT_MAX.  Static checkers complain and it's slightly confusing for
humans as well so let's just remove these conditions.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup.c