aboutsummaryrefslogtreecommitdiffstats
path: root/net/8021q
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2018-03-23 18:54:38 -0400
committerDavid S. Miller <davem@davemloft.net>2018-03-26 12:07:48 -0400
commitd6444062f8f07c346a21bd815af4a3dc8b231574 (patch)
tree5a50d845638e4b2b2182027302144afa78d7d35b /net/8021q
parentcb6219a2f564920c6e96e99d174cae3df88fe1bc (diff)
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/8021q')
-rw-r--r--net/8021q/vlanproc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/8021q/vlanproc.c b/net/8021q/vlanproc.c
index a662ccc166df..a627a5db2125 100644
--- a/net/8021q/vlanproc.c
+++ b/net/8021q/vlanproc.c
@@ -148,8 +148,8 @@ int __net_init vlan_proc_init(struct net *net)
148 if (!vn->proc_vlan_dir) 148 if (!vn->proc_vlan_dir)
149 goto err; 149 goto err;
150 150
151 vn->proc_vlan_conf = proc_create(name_conf, S_IFREG|S_IRUSR|S_IWUSR, 151 vn->proc_vlan_conf = proc_create(name_conf, S_IFREG | 0600,
152 vn->proc_vlan_dir, &vlan_fops); 152 vn->proc_vlan_dir, &vlan_fops);
153 if (!vn->proc_vlan_conf) 153 if (!vn->proc_vlan_conf)
154 goto err; 154 goto err;
155 return 0; 155 return 0;
@@ -172,7 +172,7 @@ int vlan_proc_add_dev(struct net_device *vlandev)
172 if (!strcmp(vlandev->name, name_conf)) 172 if (!strcmp(vlandev->name, name_conf))
173 return -EINVAL; 173 return -EINVAL;
174 vlan->dent = 174 vlan->dent =
175 proc_create_data(vlandev->name, S_IFREG|S_IRUSR|S_IWUSR, 175 proc_create_data(vlandev->name, S_IFREG | 0600,
176 vn->proc_vlan_dir, &vlandev_fops, vlandev); 176 vn->proc_vlan_dir, &vlandev_fops, vlandev);
177 if (!vlan->dent) 177 if (!vlan->dent)
178 return -ENOBUFS; 178 return -ENOBUFS;