Files
linux-stable-mirror/lib
Zhen Lei e2dfa1d522 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>
2023-08-05 08:31:41 +02:00
..
2023-06-13 15:13:20 -07:00
2023-06-09 17:44:13 -07:00
2023-04-08 13:45:37 -07:00
2023-03-19 10:02:04 -07:00
2023-04-17 18:01:23 +02:00
2023-07-21 11:40:20 -06:00
2023-05-31 12:58:38 +02:00