aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2009-11-16 06:11:48 -0500
committerEric W. Biederman <ebiederm@xmission.com>2009-11-18 11:37:40 -0500
commit6d4561110a3e9fa742aeec6717248a491dfb1878 (patch)
tree689e2abf19940416ce597ba56ed31026ff59bd21 /security
parent86926d0096279b9739ceeff40f68d3c33b9119a9 (diff)
sysctl: Drop & in front of every proc_handler.
For consistency drop & in front of every proc_handler. Explicity taking the address is unnecessary and it prevents optimizations like stubbing the proc_handlers to NULL. Cc: Alexey Dobriyan <adobriyan@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Joe Perches <joe@perches.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'security')
-rw-r--r--security/keys/sysctl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/security/keys/sysctl.c b/security/keys/sysctl.c
index 3565e2fc10c9..ee32d181764a 100644
--- a/security/keys/sysctl.c
+++ b/security/keys/sysctl.c
@@ -21,7 +21,7 @@ ctl_table key_sysctls[] = {
21 .data = &key_quota_maxkeys, 21 .data = &key_quota_maxkeys,
22 .maxlen = sizeof(unsigned), 22 .maxlen = sizeof(unsigned),
23 .mode = 0644, 23 .mode = 0644,
24 .proc_handler = &proc_dointvec_minmax, 24 .proc_handler = proc_dointvec_minmax,
25 .extra1 = (void *) &one, 25 .extra1 = (void *) &one,
26 .extra2 = (void *) &max, 26 .extra2 = (void *) &max,
27 }, 27 },
@@ -30,7 +30,7 @@ ctl_table key_sysctls[] = {
30 .data = &key_quota_maxbytes, 30 .data = &key_quota_maxbytes,
31 .maxlen = sizeof(unsigned), 31 .maxlen = sizeof(unsigned),
32 .mode = 0644, 32 .mode = 0644,
33 .proc_handler = &proc_dointvec_minmax, 33 .proc_handler = proc_dointvec_minmax,
34 .extra1 = (void *) &one, 34 .extra1 = (void *) &one,
35 .extra2 = (void *) &max, 35 .extra2 = (void *) &max,
36 }, 36 },
@@ -39,7 +39,7 @@ ctl_table key_sysctls[] = {
39 .data = &key_quota_root_maxkeys, 39 .data = &key_quota_root_maxkeys,
40 .maxlen = sizeof(unsigned), 40 .maxlen = sizeof(unsigned),
41 .mode = 0644, 41 .mode = 0644,
42 .proc_handler = &proc_dointvec_minmax, 42 .proc_handler = proc_dointvec_minmax,
43 .extra1 = (void *) &one, 43 .extra1 = (void *) &one,
44 .extra2 = (void *) &max, 44 .extra2 = (void *) &max,
45 }, 45 },
@@ -48,7 +48,7 @@ ctl_table key_sysctls[] = {
48 .data = &key_quota_root_maxbytes, 48 .data = &key_quota_root_maxbytes,
49 .maxlen = sizeof(unsigned), 49 .maxlen = sizeof(unsigned),
50 .mode = 0644, 50 .mode = 0644,
51 .proc_handler = &proc_dointvec_minmax, 51 .proc_handler = proc_dointvec_minmax,
52 .extra1 = (void *) &one, 52 .extra1 = (void *) &one,
53 .extra2 = (void *) &max, 53 .extra2 = (void *) &max,
54 }, 54 },
@@ -57,7 +57,7 @@ ctl_table key_sysctls[] = {
57 .data = &key_gc_delay, 57 .data = &key_gc_delay,
58 .maxlen = sizeof(unsigned), 58 .maxlen = sizeof(unsigned),
59 .mode = 0644, 59 .mode = 0644,
60 .proc_handler = &proc_dointvec_minmax, 60 .proc_handler = proc_dointvec_minmax,
61 .extra1 = (void *) &zero, 61 .extra1 = (void *) &zero,
62 .extra2 = (void *) &max, 62 .extra2 = (void *) &max,
63 }, 63 },