]> www.infradead.org Git - users/willy/xarray.git/commit
pds_core: Remove redundant null pointer checks
authorLi Zetao <lizetao1@huawei.com>
Tue, 3 Sep 2024 14:33:43 +0000 (22:33 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 4 Sep 2024 23:59:01 +0000 (16:59 -0700)
commit8ed6e71219a3571a5583db6f839e80eebaa2853d
treeed40425918041e4a180cc8d42f1b1788bb771646
parent4614ac219e3f441c64d98d684edbdc8945d49dcc
pds_core: Remove redundant null pointer checks

Since the debugfs_create_dir() never returns a null pointer, checking
the return value for a null pointer is redundant, and using IS_ERR is
safe enough.

Signed-off-by: Li Zetao <lizetao1@huawei.com>
Link: https://patch.msgid.link/20240903143343.2004652-1-lizetao1@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/amd/pds_core/debugfs.c