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/phonet/sysctl.c | |
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/phonet/sysctl.c')
-rw-r--r-- | net/phonet/sysctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/phonet/sysctl.c b/net/phonet/sysctl.c index 600a4309b8c8..0e3347bbdb12 100644 --- a/net/phonet/sysctl.c +++ b/net/phonet/sysctl.c | |||
@@ -89,7 +89,7 @@ static struct ctl_table phonet_table[] = { | |||
89 | .data = &local_port_range, | 89 | .data = &local_port_range, |
90 | .maxlen = sizeof(local_port_range), | 90 | .maxlen = sizeof(local_port_range), |
91 | .mode = 0644, | 91 | .mode = 0644, |
92 | .proc_handler = &proc_local_port_range, | 92 | .proc_handler = proc_local_port_range, |
93 | .strategy = NULL, | 93 | .strategy = NULL, |
94 | }, | 94 | }, |
95 | { .ctl_name = 0 } | 95 | { .ctl_name = 0 } |