summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_output.py
diff options
context:
space:
mode:
authorZhen Lei <thunder.leizhen@huawei.com>2023-07-26 09:25:08 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-05 09:31:41 +0300
commite2dfa1d5223cdfa7b832a582de0b7504eaf7ae22 (patch)
tree38da1624732c3ea890f7910cc0d8fe3e49e8ddb7 /scripts/lib/kdoc/kdoc_output.py
parentf429378a9bf84d79a7e2cae05d2e3384cf7d68ba (diff)
downloadlinux-e2dfa1d5223cdfa7b832a582de0b7504eaf7ae22.tar.xz
kobject: Add helper kobj_ns_type_is_valid()
There are too many "(type > KOBJ_NS_TYPE_NONE) && (type < KOBJ_NS_TYPES)" and "(type <= KOBJ_NS_TYPE_NONE) || (type >= KOBJ_NS_TYPES)", add helper kobj_ns_type_is_valid() to eliminate duplicate code and improve readability. Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Link: https://lore.kernel.org/r/20230726062508.950-1-thunder.leizhen@huaweicloud.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions