diff options
author | Yafang Shao <laoar.shao@gmail.com> | 2023-10-29 06:14:28 +0000 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2023-11-09 13:25:46 -1000 |
commit | 96a2b48e5e1df6698f504969f0f51dc34e52ff3d (patch) | |
tree | 512b40f7b232745e99b07fb26a4c347ff263b121 /tools/testing/selftests/bpf/prog_tests/async_stack_depth.c | |
parent | a12deb44f9734dc25970c266249b272e44d3d1b5 (diff) |
cgroup: Remove unnecessary list_empty()
The root hasn't been removed from the root_list, so the list can't be NULL.
However, if it had been removed, attempting to destroy it once more is not
possible. Let's replace this with WARN_ON_ONCE() for clarity.
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/async_stack_depth.c')
0 files changed, 0 insertions, 0 deletions