aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLi Zefan <[email protected]>2009-01-07 18:07:33 -0800
committerLinus Torvalds <[email protected]>2009-01-08 08:31:01 -0800
commit75139b8274c3e30354daea623f14b43a482a0bb5 (patch)
tree0da75602e260cd565d9f8c03d789744448966171 /tools/perf/scripts/python
parent18e7f1f0d34be4a39f7f47324a3e26b43fddb714 (diff)
cgroups: remove some redundant NULL checks
- In cgroup_clone(), if vfs_mkdir() returns successfully, dentry->d_fsdata will be the pointer to the newly created cgroup and won't be NULL. - a cgroup file's dentry->d_fsdata won't be NULL, guaranteed by cgroup_add_file(). - When walking through the subsystems of a cgroup_fs (using for_each_subsys), cgrp->subsys[ss->subsys_id] won't be NULL, guaranteed by cgroup_create(). (Also remove 2 unused variables in cgroup_rmdir(). Signed-off-by: Li Zefan <[email protected]> Cc: Paul Menage <[email protected]> Cc: KAMEZAWA Hiroyuki <[email protected]> Cc: Balbir Singh <[email protected]> Cc: Pavel Emelyanov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions