Merge tag 'for-5.4/post-2019-09-24' of git://git.kernel.dk/linux-block
[linux-2.6-block.git] / net / batman-adv / network-coding.c
index c5e7906045f3c62c052400c44a18bca0a38499ba..580609389f0f70680bb46490771ed8ca0e43a29b 100644 (file)
@@ -1951,34 +1951,19 @@ out:
 /**
  * batadv_nc_init_debugfs() - create nc folder and related files in debugfs
  * @bat_priv: the bat priv with all the soft interface information
- *
- * Return: 0 on success or negative error number in case of failure
  */
-int batadv_nc_init_debugfs(struct batadv_priv *bat_priv)
+void batadv_nc_init_debugfs(struct batadv_priv *bat_priv)
 {
-       struct dentry *nc_dir, *file;
+       struct dentry *nc_dir;
 
        nc_dir = debugfs_create_dir("nc", bat_priv->debug_dir);
-       if (!nc_dir)
-               goto out;
 
-       file = debugfs_create_u8("min_tq", 0644, nc_dir, &bat_priv->nc.min_tq);
-       if (!file)
-               goto out;
+       debugfs_create_u8("min_tq", 0644, nc_dir, &bat_priv->nc.min_tq);
 
-       file = debugfs_create_u32("max_fwd_delay", 0644, nc_dir,
-                                 &bat_priv->nc.max_fwd_delay);
-       if (!file)
-               goto out;
+       debugfs_create_u32("max_fwd_delay", 0644, nc_dir,
+                          &bat_priv->nc.max_fwd_delay);
 
-       file = debugfs_create_u32("max_buffer_time", 0644, nc_dir,
-                                 &bat_priv->nc.max_buffer_time);
-       if (!file)
-               goto out;
-
-       return 0;
-
-out:
-       return -ENOMEM;
+       debugfs_create_u32("max_buffer_time", 0644, nc_dir,
+                          &bat_priv->nc.max_buffer_time);
 }
 #endif