]> git.karo-electronics.de Git - linux-beck.git/commitdiff
libertas: remove unnecessary check before calling debugfs_remove
authorBas Peters <baspeters93@gmail.com>
Wed, 11 Feb 2015 08:33:06 +0000 (09:33 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 27 Feb 2015 08:06:51 +0000 (10:06 +0200)
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>
drivers/net/wireless/libertas/debugfs.c

index cc6a0a586f0b748c054c4c0e8631ea0d706501cb..26cbf1dcc6620f0502314daf8cac579794c8f6e4 100644 (file)
@@ -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)