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:
@@ -375,7 +375,7 @@ static ctl_table nlm_sysctls[] = {
|
||||
.data = &nlm_grace_period,
|
||||
.maxlen = sizeof(unsigned long),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_doulongvec_minmax,
|
||||
.proc_handler = proc_doulongvec_minmax,
|
||||
.extra1 = (unsigned long *) &nlm_grace_period_min,
|
||||
.extra2 = (unsigned long *) &nlm_grace_period_max,
|
||||
},
|
||||
@@ -384,7 +384,7 @@ static ctl_table nlm_sysctls[] = {
|
||||
.data = &nlm_timeout,
|
||||
.maxlen = sizeof(unsigned long),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_doulongvec_minmax,
|
||||
.proc_handler = proc_doulongvec_minmax,
|
||||
.extra1 = (unsigned long *) &nlm_timeout_min,
|
||||
.extra2 = (unsigned long *) &nlm_timeout_max,
|
||||
},
|
||||
@@ -393,7 +393,7 @@ static ctl_table nlm_sysctls[] = {
|
||||
.data = &nlm_udpport,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_dointvec_minmax,
|
||||
.proc_handler = proc_dointvec_minmax,
|
||||
.extra1 = (int *) &nlm_port_min,
|
||||
.extra2 = (int *) &nlm_port_max,
|
||||
},
|
||||
@@ -402,7 +402,7 @@ static ctl_table nlm_sysctls[] = {
|
||||
.data = &nlm_tcpport,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_dointvec_minmax,
|
||||
.proc_handler = proc_dointvec_minmax,
|
||||
.extra1 = (int *) &nlm_port_min,
|
||||
.extra2 = (int *) &nlm_port_max,
|
||||
},
|
||||
@@ -411,14 +411,14 @@ static ctl_table nlm_sysctls[] = {
|
||||
.data = &nsm_use_hostnames,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_dointvec,
|
||||
.proc_handler = proc_dointvec,
|
||||
},
|
||||
{
|
||||
.procname = "nsm_local_state",
|
||||
.data = &nsm_local_state,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_dointvec,
|
||||
.proc_handler = proc_dointvec,
|
||||
},
|
||||
{ }
|
||||
};
|
||||
|
Reference in New Issue
Block a user