Commit 92f43683 authored by Li Zetao's avatar Li Zetao Committed by Linus Walleij
Browse files

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: default avatarLi Zetao <lizetao1@huawei.com>
Link: https://lore.kernel.org/20240903143812.2005071-1-lizetao1@huawei.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent dbf0e9d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment