mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
staging: rtlwifi: don't check the return value of debugfs_create_file
We never did anything with the return value, and it does not matter if the call succeeds or not (it's just debugging code), so don't even check it. Cc: Larry Finger <Larry.Finger@lwfinger.net> Cc: Ping-Ke Shih <pkshih@realtek.com> Cc: Colin Ian King <colin.king@canonical.com> Cc: "Frank A. Cancio Bello" <frank@generalsoftwareinc.com> Cc: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
00aaa6b138
commit
e206a0d47e
1 changed files with 3 additions and 6 deletions
|
@ -521,12 +521,9 @@ static const struct file_operations file_ops_common_rw = {
|
|||
#define RTL_DEBUGFS_ADD_CORE(name, mode, fopname) \
|
||||
do { \
|
||||
rtl_debug_priv_ ##name.rtlpriv = rtlpriv; \
|
||||
if (!debugfs_create_file(#name, mode, \
|
||||
parent, &rtl_debug_priv_ ##name, \
|
||||
&file_ops_ ##fopname)) \
|
||||
pr_err("Unable to initialize debugfs:%s/%s\n", \
|
||||
rtlpriv->dbg.debugfs_name, \
|
||||
#name); \
|
||||
debugfs_create_file(#name, mode, parent, \
|
||||
&rtl_debug_priv_ ##name, \
|
||||
&file_ops_ ##fopname); \
|
||||
} while (0)
|
||||
|
||||
#define RTL_DEBUGFS_ADD(name) \
|
||||
|
|
Loading…
Reference in a new issue