diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-11-03 21:21:05 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-03 21:21:05 -0500 |
commit | 6d9f239a1edb31d6133230f478fd1dc2da338ec5 (patch) | |
tree | 305fa0da95a49db4e342f3f3042f8be0968b03ce /net/appletalk | |
parent | 6cf3f41e6c08bca6641a695449791c38a25f35ff (diff) |
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 <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/appletalk')
-rw-r--r-- | net/appletalk/sysctl_net_atalk.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/appletalk/sysctl_net_atalk.c b/net/appletalk/sysctl_net_atalk.c index 621805dfa2f4..8d237b15183b 100644 --- a/net/appletalk/sysctl_net_atalk.c +++ b/net/appletalk/sysctl_net_atalk.c | |||
@@ -17,8 +17,8 @@ static struct ctl_table atalk_table[] = { | |||
17 | .data = &sysctl_aarp_expiry_time, | 17 | .data = &sysctl_aarp_expiry_time, |
18 | .maxlen = sizeof(int), | 18 | .maxlen = sizeof(int), |
19 | .mode = 0644, | 19 | .mode = 0644, |
20 | .proc_handler = &proc_dointvec_jiffies, | 20 | .proc_handler = proc_dointvec_jiffies, |
21 | .strategy = &sysctl_jiffies, | 21 | .strategy = sysctl_jiffies, |
22 | }, | 22 | }, |
23 | { | 23 | { |
24 | .ctl_name = NET_ATALK_AARP_TICK_TIME, | 24 | .ctl_name = NET_ATALK_AARP_TICK_TIME, |
@@ -26,8 +26,8 @@ static struct ctl_table atalk_table[] = { | |||
26 | .data = &sysctl_aarp_tick_time, | 26 | .data = &sysctl_aarp_tick_time, |
27 | .maxlen = sizeof(int), | 27 | .maxlen = sizeof(int), |
28 | .mode = 0644, | 28 | .mode = 0644, |
29 | .proc_handler = &proc_dointvec_jiffies, | 29 | .proc_handler = proc_dointvec_jiffies, |
30 | .strategy = &sysctl_jiffies, | 30 | .strategy = sysctl_jiffies, |
31 | }, | 31 | }, |
32 | { | 32 | { |
33 | .ctl_name = NET_ATALK_AARP_RETRANSMIT_LIMIT, | 33 | .ctl_name = NET_ATALK_AARP_RETRANSMIT_LIMIT, |
@@ -35,7 +35,7 @@ static struct ctl_table atalk_table[] = { | |||
35 | .data = &sysctl_aarp_retransmit_limit, | 35 | .data = &sysctl_aarp_retransmit_limit, |
36 | .maxlen = sizeof(int), | 36 | .maxlen = sizeof(int), |
37 | .mode = 0644, | 37 | .mode = 0644, |
38 | .proc_handler = &proc_dointvec, | 38 | .proc_handler = proc_dointvec, |
39 | }, | 39 | }, |
40 | { | 40 | { |
41 | .ctl_name = NET_ATALK_AARP_RESOLVE_TIME, | 41 | .ctl_name = NET_ATALK_AARP_RESOLVE_TIME, |
@@ -43,8 +43,8 @@ static struct ctl_table atalk_table[] = { | |||
43 | .data = &sysctl_aarp_resolve_time, | 43 | .data = &sysctl_aarp_resolve_time, |
44 | .maxlen = sizeof(int), | 44 | .maxlen = sizeof(int), |
45 | .mode = 0644, | 45 | .mode = 0644, |
46 | .proc_handler = &proc_dointvec_jiffies, | 46 | .proc_handler = proc_dointvec_jiffies, |
47 | .strategy = &sysctl_jiffies, | 47 | .strategy = sysctl_jiffies, |
48 | }, | 48 | }, |
49 | { 0 }, | 49 | { 0 }, |
50 | }; | 50 | }; |