diff options
author | 2023-08-05 16:41:14 +0800 | |
---|---|---|
committer | 2023-08-19 19:37:53 +0200 | |
commit | 1b28cb81dab7c1eedc6034206f4e8d644046ad31 (patch) | |
tree | 513a27592a928e3da71b31c9e0ab1a467ddf5431 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | kobject: Add sanity check for kset->kobj.ktype in kset_register() (diff) | |
download | wireguard-linux-1b28cb81dab7c1eedc6034206f4e8d644046ad31.tar.xz wireguard-linux-1b28cb81dab7c1eedc6034206f4e8d644046ad31.zip |
kobject: Remove redundant checks for whether ktype is NULL
When adding koject or kset, we have made sure that ktype cannot be NULL.
Therefore, after adding koject or kset, there is no need to worry about
ktype being NULL. Clear all ktype-related redundancy checks.
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20230805084114.1298-3-thunder.leizhen@huaweicloud.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions