]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/batman-adv/debugfs.c
batman-adv: remove useless NULL check
[karo-tx-linux.git] / net / batman-adv / debugfs.c
index 6f58ddd53bff8d2752c7a59dda1c20e40ec428e0..5136d32bc9b9547e352c10bcf5a08758aedce48a 100644 (file)
@@ -164,7 +164,6 @@ static ssize_t batadv_log_read(struct file *file, char __user *buf,
 
                buf++;
                i++;
-
        }
 
        spin_unlock_bh(&debug_log->lock);
@@ -397,10 +396,8 @@ err:
 
 void batadv_debugfs_destroy(void)
 {
-       if (batadv_debugfs) {
-               debugfs_remove_recursive(batadv_debugfs);
-               batadv_debugfs = NULL;
-       }
+       debugfs_remove_recursive(batadv_debugfs);
+       batadv_debugfs = NULL;
 }
 
 int batadv_debugfs_add_meshif(struct net_device *dev)