cpuset: remove impossible warning in update_parent_effective_cpumask
authorChen Ridong <chenridong@huawei.com>
Mon, 22 Sep 2025 13:02:32 +0000 (13:02 +0000)
committerTejun Heo <tj@kernel.org>
Mon, 22 Sep 2025 22:57:46 +0000 (12:57 -1000)
commit39431592e93530d7f543e3d7204a8f9a062e6ac7
treee65411598e7c7927997c58086e19901d19ea5c79
parentb72af996b67ccb1dea988765bf046cba2d4c6898
cpuset: remove impossible warning in update_parent_effective_cpumask

If the parent is not a valid partition, an error will be returned before
any partition update command is processed. This means the
WARN_ON_ONCE(!is_partition_valid(parent)) can never be triggered, so
it is safe to remove.

Signed-off-by: Chen Ridong <chenridong@huawei.com>
Acked-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c