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,8 +742,7 @@ void lbs_debugfs_init(void)
void lbs_debugfs_remove(void)
{
if (lbs_dir)
debugfs_remove(lbs_dir);
debugfs_remove(lbs_dir);
}
void lbs_debugfs_init_one(struct lbs_private *priv, struct net_device *dev)
......
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