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/llc | |
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/llc')
-rw-r--r-- | net/llc/sysctl_net_llc.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/net/llc/sysctl_net_llc.c b/net/llc/sysctl_net_llc.c index 5bef1dcf18e3..57b9304d444c 100644 --- a/net/llc/sysctl_net_llc.c +++ b/net/llc/sysctl_net_llc.c | |||
@@ -20,8 +20,8 @@ static struct ctl_table llc2_timeout_table[] = { | |||
20 | .data = &sysctl_llc2_ack_timeout, | 20 | .data = &sysctl_llc2_ack_timeout, |
21 | .maxlen = sizeof(long), | 21 | .maxlen = sizeof(long), |
22 | .mode = 0644, | 22 | .mode = 0644, |
23 | .proc_handler = &proc_dointvec_jiffies, | 23 | .proc_handler = proc_dointvec_jiffies, |
24 | .strategy = &sysctl_jiffies, | 24 | .strategy = sysctl_jiffies, |
25 | }, | 25 | }, |
26 | { | 26 | { |
27 | .ctl_name = NET_LLC2_BUSY_TIMEOUT, | 27 | .ctl_name = NET_LLC2_BUSY_TIMEOUT, |
@@ -29,8 +29,8 @@ static struct ctl_table llc2_timeout_table[] = { | |||
29 | .data = &sysctl_llc2_busy_timeout, | 29 | .data = &sysctl_llc2_busy_timeout, |
30 | .maxlen = sizeof(long), | 30 | .maxlen = sizeof(long), |
31 | .mode = 0644, | 31 | .mode = 0644, |
32 | .proc_handler = &proc_dointvec_jiffies, | 32 | .proc_handler = proc_dointvec_jiffies, |
33 | .strategy = &sysctl_jiffies, | 33 | .strategy = sysctl_jiffies, |
34 | }, | 34 | }, |
35 | { | 35 | { |
36 | .ctl_name = NET_LLC2_P_TIMEOUT, | 36 | .ctl_name = NET_LLC2_P_TIMEOUT, |
@@ -38,8 +38,8 @@ static struct ctl_table llc2_timeout_table[] = { | |||
38 | .data = &sysctl_llc2_p_timeout, | 38 | .data = &sysctl_llc2_p_timeout, |
39 | .maxlen = sizeof(long), | 39 | .maxlen = sizeof(long), |
40 | .mode = 0644, | 40 | .mode = 0644, |
41 | .proc_handler = &proc_dointvec_jiffies, | 41 | .proc_handler = proc_dointvec_jiffies, |
42 | .strategy = &sysctl_jiffies, | 42 | .strategy = sysctl_jiffies, |
43 | }, | 43 | }, |
44 | { | 44 | { |
45 | .ctl_name = NET_LLC2_REJ_TIMEOUT, | 45 | .ctl_name = NET_LLC2_REJ_TIMEOUT, |
@@ -47,8 +47,8 @@ static struct ctl_table llc2_timeout_table[] = { | |||
47 | .data = &sysctl_llc2_rej_timeout, | 47 | .data = &sysctl_llc2_rej_timeout, |
48 | .maxlen = sizeof(long), | 48 | .maxlen = sizeof(long), |
49 | .mode = 0644, | 49 | .mode = 0644, |
50 | .proc_handler = &proc_dointvec_jiffies, | 50 | .proc_handler = proc_dointvec_jiffies, |
51 | .strategy = &sysctl_jiffies, | 51 | .strategy = sysctl_jiffies, |
52 | }, | 52 | }, |
53 | { 0 }, | 53 | { 0 }, |
54 | }; | 54 | }; |
@@ -60,8 +60,8 @@ static struct ctl_table llc_station_table[] = { | |||
60 | .data = &sysctl_llc_station_ack_timeout, | 60 | .data = &sysctl_llc_station_ack_timeout, |
61 | .maxlen = sizeof(long), | 61 | .maxlen = sizeof(long), |
62 | .mode = 0644, | 62 | .mode = 0644, |
63 | .proc_handler = &proc_dointvec_jiffies, | 63 | .proc_handler = proc_dointvec_jiffies, |
64 | .strategy = &sysctl_jiffies, | 64 | .strategy = sysctl_jiffies, |
65 | }, | 65 | }, |
66 | { 0 }, | 66 | { 0 }, |
67 | }; | 67 | }; |