diff options
author | Joe Perches <joe@perches.com> | 2018-03-23 23:54:38 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-26 18:07:48 +0200 |
commit | d6444062f8f07c346a21bd815af4a3dc8b231574 (patch) | |
tree | 5a50d845638e4b2b2182027302144afa78d7d35b /net/rose/af_rose.c | |
parent | Merge branch 'Drop-NETDEV_UNREGISTER_FINAL' (diff) | |
download | linux-d6444062f8f07c346a21bd815af4a3dc8b231574.tar.xz linux-d6444062f8f07c346a21bd815af4a3dc8b231574.zip |
net: Use octal not symbolic permissions
Prefer the direct use of octal for permissions.
Done with checkpatch -f --types=SYMBOLIC_PERMS --fix-inplace
and some typing.
Miscellanea:
o Whitespace neatening around these conversions.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rose/af_rose.c')
-rw-r--r-- | net/rose/af_rose.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c index 5170373b797c..9ff5e0a76593 100644 --- a/net/rose/af_rose.c +++ b/net/rose/af_rose.c @@ -1567,12 +1567,12 @@ static int __init rose_proto_init(void) rose_add_loopback_neigh(); - proc_create("rose", S_IRUGO, init_net.proc_net, &rose_info_fops); - proc_create("rose_neigh", S_IRUGO, init_net.proc_net, + proc_create("rose", 0444, init_net.proc_net, &rose_info_fops); + proc_create("rose_neigh", 0444, init_net.proc_net, &rose_neigh_fops); - proc_create("rose_nodes", S_IRUGO, init_net.proc_net, + proc_create("rose_nodes", 0444, init_net.proc_net, &rose_nodes_fops); - proc_create("rose_routes", S_IRUGO, init_net.proc_net, + proc_create("rose_routes", 0444, init_net.proc_net, &rose_routes_fops); out: return rc; |