mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-21 13:13:07 +07:00
mwifiex: no need to check return value of debugfs_create functions
When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this. Cc: Amitkumar Karwar <amitkarwar@gmail.com> Cc: Nishant Sarmukadam <nishants@marvell.com> Cc: Ganapathi Bhat <gbhat@marvell.com> Cc: Xinming Hu <huxinming820@gmail.com> Cc: Kalle Valo <kvalo@codeaurora.org> Cc: linux-wireless@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
caac453a9b
commit
a0b449dc4c
@ -922,9 +922,8 @@ mwifiex_reset_write(struct file *file,
|
||||
}
|
||||
|
||||
#define MWIFIEX_DFS_ADD_FILE(name) do { \
|
||||
if (!debugfs_create_file(#name, 0644, priv->dfs_dev_dir, \
|
||||
priv, &mwifiex_dfs_##name##_fops)) \
|
||||
return; \
|
||||
debugfs_create_file(#name, 0644, priv->dfs_dev_dir, priv, \
|
||||
&mwifiex_dfs_##name##_fops); \
|
||||
} while (0);
|
||||
|
||||
#define MWIFIEX_DFS_FILE_OPS(name) \
|
||||
|
Loading…
Reference in New Issue
Block a user