]> Gentwo Git Trees - linux/.git/commit
cpuset: change return type of is_partition_[in]valid to bool
authorChen Ridong <chenridong@huawei.com>
Wed, 17 Sep 2025 06:04:46 +0000 (06:04 +0000)
committerTejun Heo <tj@kernel.org>
Wed, 17 Sep 2025 18:37:30 +0000 (08:37 -1000)
commit6a59fc4a3a5b19ea375b54ea70d16713c45ea5a0
tree9c65ef288a163d470afcc8f512824206d2bf06c0
parentbba0ccf829b904e6d1f119d94f01d7209d34ba28
cpuset: change return type of is_partition_[in]valid to bool

The functions is_partition_valid() and is_partition_invalid() logically
return boolean values, but were previously declared with return type
'int'. This patch changes their return type to 'bool' to better reflect
their semantic meaning and improve type safety.

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