aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c
diff options
context:
space:
mode:
authorJinjie Ruan <ruanjinjie@huawei.com>2023-09-03 11:02:15 +0800
committerKalle Valo <kvalo@kernel.org>2024-01-18 15:06:42 +0200
commit50180c7f8e3de7c2d87f619131776598fcb1478d (patch)
treed19f4c201e2fcb391ad898309243845e5ce24ae6 /drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c
parent899c0e8a221983ce20e887932dfed7955662609c (diff)
wifi: mwifiex: debugfs: Drop unnecessary error check for debugfs_create_dir()
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: 5e6e3a92b9a4 ("wireless: mwifiex: initial commit for Marvell mwifiex driver") Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com> Suggested-by: Russell King (Oracle) <linux@armlinux.org.uk> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://msgid.link/20230903030216.1509013-3-ruanjinjie@huawei.com
Diffstat (limited to 'drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c')
0 files changed, 0 insertions, 0 deletions