diff options
author | 2024-09-07 11:40:46 +0800 | |
---|---|---|
committer | 2024-09-07 07:40:49 -0600 | |
commit | a02e98bebc15f1d973c2a62005be9456a657e2b6 (patch) | |
tree | 8785644546147b0f476ec72bd71d379e83467989 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | Merge tag 'md-6.12-20240906' of https://git.kernel.org/pub/scm/linux/kernel/git/song/md into for-6.12/block (diff) | |
download | wireguard-linux-a02e98bebc15f1d973c2a62005be9456a657e2b6.tar.xz wireguard-linux-a02e98bebc15f1d973c2a62005be9456a657e2b6.zip |
mtip32xx: Remove redundant null pointer checks in mtip_hw_debugfs_init()
Since the debugfs_create_dir() never returns a null pointer, checking
the return value for a null pointer is redundant. Since
debugfs_create_file() can deal with a ERR_PTR() style pointer, drop
the check. Since mtip_hw_debugfs_init does not pay attention to the
return value, its return type can be changed to void.
Signed-off-by: Li Zetao <lizetao1@huawei.com>
Link: https://lore.kernel.org/r/20240907034046.3595268-1-lizetao1@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions