Skip to content

Commit

Permalink
rsi: no need to check return value of debugfs_create functions
Browse files Browse the repository at this point in the history
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: 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>
  • Loading branch information
Greg Kroah-Hartman authored and Kalle Valo committed Feb 1, 2019
1 parent 9ae4998 commit b8f1fe5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/net/wireless/rsi/rsi_91x_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,6 @@ int rsi_init_dbgfs(struct rsi_hw *adapter)

dev_dbgfs->subdir = debugfs_create_dir(devdir, NULL);

if (!dev_dbgfs->subdir) {
kfree(dev_dbgfs);
return -ENOMEM;
}

for (ii = 0; ii < adapter->num_debugfs_entries; ii++) {
files = &dev_debugfs_files[ii];
dev_dbgfs->rsi_files[ii] =
Expand Down

0 comments on commit b8f1fe5

Please sign in to comment.