mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Joe Perches <[email protected]> Signed-off-by: Eric W. Biederman <[email protected]>
This commit is contained in:
parent
86926d0096
commit
6d4561110a
45 changed files with 339 additions and 339 deletions
|
|
@ -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,
|
||||
},
|
||||
{ }
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue