diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2009-11-16 06:11:48 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2009-11-18 11:37:40 -0500 |
commit | 6d4561110a3e9fa742aeec6717248a491dfb1878 (patch) | |
tree | 689e2abf19940416ce597ba56ed31026ff59bd21 /fs/nfs/sysctl.c | |
parent | 86926d0096279b9739ceeff40f68d3c33b9119a9 (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 'fs/nfs/sysctl.c')
-rw-r--r-- | fs/nfs/sysctl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/nfs/sysctl.c b/fs/nfs/sysctl.c index af51e6af2072..70e1fbbaaeab 100644 --- a/fs/nfs/sysctl.c +++ b/fs/nfs/sysctl.c | |||
@@ -26,7 +26,7 @@ static ctl_table nfs_cb_sysctls[] = { | |||
26 | .data = &nfs_callback_set_tcpport, | 26 | .data = &nfs_callback_set_tcpport, |
27 | .maxlen = sizeof(int), | 27 | .maxlen = sizeof(int), |
28 | .mode = 0644, | 28 | .mode = 0644, |
29 | .proc_handler = &proc_dointvec_minmax, | 29 | .proc_handler = proc_dointvec_minmax, |
30 | .extra1 = (int *)&nfs_set_port_min, | 30 | .extra1 = (int *)&nfs_set_port_min, |
31 | .extra2 = (int *)&nfs_set_port_max, | 31 | .extra2 = (int *)&nfs_set_port_max, |
32 | }, | 32 | }, |
@@ -35,7 +35,7 @@ static ctl_table nfs_cb_sysctls[] = { | |||
35 | .data = &nfs_idmap_cache_timeout, | 35 | .data = &nfs_idmap_cache_timeout, |
36 | .maxlen = sizeof(int), | 36 | .maxlen = sizeof(int), |
37 | .mode = 0644, | 37 | .mode = 0644, |
38 | .proc_handler = &proc_dointvec_jiffies, | 38 | .proc_handler = proc_dointvec_jiffies, |
39 | }, | 39 | }, |
40 | #endif | 40 | #endif |
41 | { | 41 | { |
@@ -43,14 +43,14 @@ static ctl_table nfs_cb_sysctls[] = { | |||
43 | .data = &nfs_mountpoint_expiry_timeout, | 43 | .data = &nfs_mountpoint_expiry_timeout, |
44 | .maxlen = sizeof(nfs_mountpoint_expiry_timeout), | 44 | .maxlen = sizeof(nfs_mountpoint_expiry_timeout), |
45 | .mode = 0644, | 45 | .mode = 0644, |
46 | .proc_handler = &proc_dointvec_jiffies, | 46 | .proc_handler = proc_dointvec_jiffies, |
47 | }, | 47 | }, |
48 | { | 48 | { |
49 | .procname = "nfs_congestion_kb", | 49 | .procname = "nfs_congestion_kb", |
50 | .data = &nfs_congestion_kb, | 50 | .data = &nfs_congestion_kb, |
51 | .maxlen = sizeof(nfs_congestion_kb), | 51 | .maxlen = sizeof(nfs_congestion_kb), |
52 | .mode = 0644, | 52 | .mode = 0644, |
53 | .proc_handler = &proc_dointvec, | 53 | .proc_handler = proc_dointvec, |
54 | }, | 54 | }, |
55 | { } | 55 | { } |
56 | }; | 56 | }; |