mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
net: '&' redux
I want to compile out proc_* and sysctl_* handlers totally and stub them to NULL depending on config options, however usage of & will prevent this, since taking adress of NULL pointer will break compilation. So, drop & in front of every ->proc_handler and every ->strategy handler, it was never needed in fact. Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
6cf3f41e6c
commit
6d9f239a1e
38 changed files with 509 additions and 509 deletions
|
|
@ -41,8 +41,8 @@ static ctl_table nr_table[] = {
|
|||
.data = &sysctl_netrom_default_path_quality,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_dointvec_minmax,
|
||||
.strategy = &sysctl_intvec,
|
||||
.proc_handler = proc_dointvec_minmax,
|
||||
.strategy = sysctl_intvec,
|
||||
.extra1 = &min_quality,
|
||||
.extra2 = &max_quality
|
||||
},
|
||||
|
|
@ -52,8 +52,8 @@ static ctl_table nr_table[] = {
|
|||
.data = &sysctl_netrom_obsolescence_count_initialiser,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_dointvec_minmax,
|
||||
.strategy = &sysctl_intvec,
|
||||
.proc_handler = proc_dointvec_minmax,
|
||||
.strategy = sysctl_intvec,
|
||||
.extra1 = &min_obs,
|
||||
.extra2 = &max_obs
|
||||
},
|
||||
|
|
@ -63,8 +63,8 @@ static ctl_table nr_table[] = {
|
|||
.data = &sysctl_netrom_network_ttl_initialiser,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_dointvec_minmax,
|
||||
.strategy = &sysctl_intvec,
|
||||
.proc_handler = proc_dointvec_minmax,
|
||||
.strategy = sysctl_intvec,
|
||||
.extra1 = &min_ttl,
|
||||
.extra2 = &max_ttl
|
||||
},
|
||||
|
|
@ -74,8 +74,8 @@ static ctl_table nr_table[] = {
|
|||
.data = &sysctl_netrom_transport_timeout,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_dointvec_minmax,
|
||||
.strategy = &sysctl_intvec,
|
||||
.proc_handler = proc_dointvec_minmax,
|
||||
.strategy = sysctl_intvec,
|
||||
.extra1 = &min_t1,
|
||||
.extra2 = &max_t1
|
||||
},
|
||||
|
|
@ -85,8 +85,8 @@ static ctl_table nr_table[] = {
|
|||
.data = &sysctl_netrom_transport_maximum_tries,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_dointvec_minmax,
|
||||
.strategy = &sysctl_intvec,
|
||||
.proc_handler = proc_dointvec_minmax,
|
||||
.strategy = sysctl_intvec,
|
||||
.extra1 = &min_n2,
|
||||
.extra2 = &max_n2
|
||||
},
|
||||
|
|
@ -96,8 +96,8 @@ static ctl_table nr_table[] = {
|
|||
.data = &sysctl_netrom_transport_acknowledge_delay,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_dointvec_minmax,
|
||||
.strategy = &sysctl_intvec,
|
||||
.proc_handler = proc_dointvec_minmax,
|
||||
.strategy = sysctl_intvec,
|
||||
.extra1 = &min_t2,
|
||||
.extra2 = &max_t2
|
||||
},
|
||||
|
|
@ -107,8 +107,8 @@ static ctl_table nr_table[] = {
|
|||
.data = &sysctl_netrom_transport_busy_delay,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_dointvec_minmax,
|
||||
.strategy = &sysctl_intvec,
|
||||
.proc_handler = proc_dointvec_minmax,
|
||||
.strategy = sysctl_intvec,
|
||||
.extra1 = &min_t4,
|
||||
.extra2 = &max_t4
|
||||
},
|
||||
|
|
@ -118,8 +118,8 @@ static ctl_table nr_table[] = {
|
|||
.data = &sysctl_netrom_transport_requested_window_size,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_dointvec_minmax,
|
||||
.strategy = &sysctl_intvec,
|
||||
.proc_handler = proc_dointvec_minmax,
|
||||
.strategy = sysctl_intvec,
|
||||
.extra1 = &min_window,
|
||||
.extra2 = &max_window
|
||||
},
|
||||
|
|
@ -129,8 +129,8 @@ static ctl_table nr_table[] = {
|
|||
.data = &sysctl_netrom_transport_no_activity_timeout,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_dointvec_minmax,
|
||||
.strategy = &sysctl_intvec,
|
||||
.proc_handler = proc_dointvec_minmax,
|
||||
.strategy = sysctl_intvec,
|
||||
.extra1 = &min_idle,
|
||||
.extra2 = &max_idle
|
||||
},
|
||||
|
|
@ -140,8 +140,8 @@ static ctl_table nr_table[] = {
|
|||
.data = &sysctl_netrom_routing_control,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_dointvec_minmax,
|
||||
.strategy = &sysctl_intvec,
|
||||
.proc_handler = proc_dointvec_minmax,
|
||||
.strategy = sysctl_intvec,
|
||||
.extra1 = &min_route,
|
||||
.extra2 = &max_route
|
||||
},
|
||||
|
|
@ -151,8 +151,8 @@ static ctl_table nr_table[] = {
|
|||
.data = &sysctl_netrom_link_fails_count,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_dointvec_minmax,
|
||||
.strategy = &sysctl_intvec,
|
||||
.proc_handler = proc_dointvec_minmax,
|
||||
.strategy = sysctl_intvec,
|
||||
.extra1 = &min_fails,
|
||||
.extra2 = &max_fails
|
||||
},
|
||||
|
|
@ -162,8 +162,8 @@ static ctl_table nr_table[] = {
|
|||
.data = &sysctl_netrom_reset_circuit,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = &proc_dointvec_minmax,
|
||||
.strategy = &sysctl_intvec,
|
||||
.proc_handler = proc_dointvec_minmax,
|
||||
.strategy = sysctl_intvec,
|
||||
.extra1 = &min_reset,
|
||||
.extra2 = &max_reset
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue