]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: Remove redundant null pointer checks in pinctrl_remove_device_debugfs()
authorLi Zetao <lizetao1@huawei.com>
Tue, 3 Sep 2024 14:38:12 +0000 (22:38 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 5 Sep 2024 13:09:47 +0000 (15:09 +0200)
commit92f4368347a2a8a204b0513df32233075cd93b4f
tree6ea889dfbaf809c99d34746f61d63f74d82bfd03
parentdbf0e9d911cebcb0a7ae8f839cf2a316b34b5b8d
pinctrl: Remove redundant null pointer checks in pinctrl_remove_device_debugfs()

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://lore.kernel.org/20240903143812.2005071-1-lizetao1@huawei.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.c