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>
This commit is contained in:
@@ -26,7 +26,7 @@ static ctl_table nfs_cb_sysctls[] = {
|
||||
.data = &nfs_callback_set_tcpport,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_dointvec_minmax,
|
||||
.proc_handler = proc_dointvec_minmax,
|
||||
.extra1 = (int *)&nfs_set_port_min,
|
||||
.extra2 = (int *)&nfs_set_port_max,
|
||||
},
|
||||
@@ -35,7 +35,7 @@ static ctl_table nfs_cb_sysctls[] = {
|
||||
.data = &nfs_idmap_cache_timeout,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_dointvec_jiffies,
|
||||
.proc_handler = proc_dointvec_jiffies,
|
||||
},
|
||||
#endif
|
||||
{
|
||||
@@ -43,14 +43,14 @@ static ctl_table nfs_cb_sysctls[] = {
|
||||
.data = &nfs_mountpoint_expiry_timeout,
|
||||
.maxlen = sizeof(nfs_mountpoint_expiry_timeout),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_dointvec_jiffies,
|
||||
.proc_handler = proc_dointvec_jiffies,
|
||||
},
|
||||
{
|
||||
.procname = "nfs_congestion_kb",
|
||||
.data = &nfs_congestion_kb,
|
||||
.maxlen = sizeof(nfs_congestion_kb),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_dointvec,
|
||||
.proc_handler = proc_dointvec,
|
||||
},
|
||||
{ }
|
||||
};
|
||||
|
Reference in New Issue
Block a user