Browse Source

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: Bas Peters <baspeters93@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Bas Peters 10 years ago
parent
commit
8a1959beca
1 changed files with 1 additions and 2 deletions
  1. 1 2
      drivers/net/wireless/libertas/debugfs.c

+ 1 - 2
drivers/net/wireless/libertas/debugfs.c

@@ -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)