Commit 8a1959be authored by Bas Peters's avatar Bas Peters Committed by Kalle Valo

libertas: remove unnecessary check before calling debugfs_remove

Debugfs_remove will check for error or NULL for us, so it is not
necessary to do this here.
Signed-off-by: default avatarBas Peters <baspeters93@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 851639fd
...@@ -742,7 +742,6 @@ void lbs_debugfs_init(void) ...@@ -742,7 +742,6 @@ void lbs_debugfs_init(void)
void lbs_debugfs_remove(void) void lbs_debugfs_remove(void)
{ {
if (lbs_dir)
debugfs_remove(lbs_dir); debugfs_remove(lbs_dir);
} }
......
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