Re: [PATCH v3 bpf-next 01/11] cgroup: Remove unnecessary list_empty()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Oct 29, 2023 at 06:14:28AM +0000, Yafang Shao wrote:
> 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@xxxxxxxxx>

Acked-by: Tejun Heo <tj@xxxxxxxxxx>

-- 
tejun




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux