Commit a0b449dc authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by Kalle Valo

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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent caac453a
...@@ -922,9 +922,8 @@ mwifiex_reset_write(struct file *file, ...@@ -922,9 +922,8 @@ mwifiex_reset_write(struct file *file,
} }
#define MWIFIEX_DFS_ADD_FILE(name) do { \ #define MWIFIEX_DFS_ADD_FILE(name) do { \
if (!debugfs_create_file(#name, 0644, priv->dfs_dev_dir, \ debugfs_create_file(#name, 0644, priv->dfs_dev_dir, priv, \
priv, &mwifiex_dfs_##name##_fops)) \ &mwifiex_dfs_##name##_fops); \
return; \
} while (0); } while (0);
#define MWIFIEX_DFS_FILE_OPS(name) \ #define MWIFIEX_DFS_FILE_OPS(name) \
......
Markdown is supported
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