aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/network-coding.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2016-09-01 04:25:12 -0400
committerSimon Wunderlich <sw@simonwunderlich.de>2016-10-19 02:37:53 -0400
commit507b37cf71c86b7ceaebf333b8ae488a600f5afd (patch)
tree90f546e27c8d845db863ec66260a5ec0eede97bd /net/batman-adv/network-coding.c
parent70ea5cee95479695a5a84c0ef665604fdf1f8362 (diff)
batman-adv: Use octal permissions instead of macros
Linus prefers to have octal permission numbers instead of combinations of macro names ("random line noise"). Also old existing "bad symbolic permission bit macro use" should be converted to octal numbers. (http://lkml.kernel.org/r/CA+55aFw5v23T-zvDZp-MmD_EYxF8WbafwwB59934FV7g21uMGQ@mail.gmail.com) Also remove the S_IFREG bit from the octal representation because it is filtered out by debugfs_create. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/network-coding.c')
-rw-r--r--net/batman-adv/network-coding.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/net/batman-adv/network-coding.c b/net/batman-adv/network-coding.c
index e3baf697a35c..c213ddec86ad 100644
--- a/net/batman-adv/network-coding.c
+++ b/net/batman-adv/network-coding.c
@@ -44,7 +44,6 @@
44#include <linux/skbuff.h> 44#include <linux/skbuff.h>
45#include <linux/slab.h> 45#include <linux/slab.h>
46#include <linux/spinlock.h> 46#include <linux/spinlock.h>
47#include <linux/stat.h>
48#include <linux/stddef.h> 47#include <linux/stddef.h>
49#include <linux/string.h> 48#include <linux/string.h>
50#include <linux/workqueue.h> 49#include <linux/workqueue.h>
@@ -1961,17 +1960,16 @@ int batadv_nc_init_debugfs(struct batadv_priv *bat_priv)
1961 if (!nc_dir) 1960 if (!nc_dir)
1962 goto out; 1961 goto out;
1963 1962
1964 file = debugfs_create_u8("min_tq", S_IRUGO | S_IWUSR, nc_dir, 1963 file = debugfs_create_u8("min_tq", 0644, nc_dir, &bat_priv->nc.min_tq);
1965 &bat_priv->nc.min_tq);
1966 if (!file) 1964 if (!file)
1967 goto out; 1965 goto out;
1968 1966
1969 file = debugfs_create_u32("max_fwd_delay", S_IRUGO | S_IWUSR, nc_dir, 1967 file = debugfs_create_u32("max_fwd_delay", 0644, nc_dir,
1970 &bat_priv->nc.max_fwd_delay); 1968 &bat_priv->nc.max_fwd_delay);
1971 if (!file) 1969 if (!file)
1972 goto out; 1970 goto out;
1973 1971
1974 file = debugfs_create_u32("max_buffer_time", S_IRUGO | S_IWUSR, nc_dir, 1972 file = debugfs_create_u32("max_buffer_time", 0644, nc_dir,
1975 &bat_priv->nc.max_buffer_time); 1973 &bat_priv->nc.max_buffer_time);
1976 if (!file) 1974 if (!file)
1977 goto out; 1975 goto out;