]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ionic: Remove redundant null pointer checks in ionic_debugfs_add_qcq()
authorLi Zetao <lizetao1@huawei.com>
Tue, 3 Sep 2024 14:31:49 +0000 (22:31 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 4 Sep 2024 23:58:37 +0000 (16:58 -0700)
commit4614ac219e3f441c64d98d684edbdc8945d49dcc
tree1231264b251c28b8e273f2df19e45af6bd616c36
parent2a7e41be085bbe50220b44a5964228625cda1487
ionic: Remove redundant null pointer checks in ionic_debugfs_add_qcq()

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/20240903143149.2004530-1-lizetao1@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/pensando/ionic/ionic_debugfs.c