Skip to content
Commit 6798cf0a authored by Jinjie Ruan's avatar Jinjie Ruan Committed by Sasha Levin
Browse files

wifi: mwifiex: debugfs: Drop unnecessary error check for debugfs_create_dir()

[ Upstream commit 50180c7f ]

debugfs_create_dir() returns ERR_PTR and never return NULL.

As Russell suggested, this patch removes the error checking for
debugfs_create_dir(). This is because the DebugFS kernel API is developed
in a way that the caller can safely ignore the errors that occur during
the creation of DebugFS nodes. The debugfs APIs have a IS_ERR() judge in
start_creating() which can handle it gracefully. So these checks are
unnecessary.

Fixes: 5e6e3a92

 ("wireless: mwifiex: initial commit for Marvell mwifiex driver")
Signed-off-by: default avatarJinjie Ruan <ruanjinjie@huawei.com>
Suggested-by: default avatarRussell King (Oracle) <linux@armlinux.org.uk>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20230903030216.1509013-3-ruanjinjie@huawei.com
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 5a26e6d2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment