aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_fragment.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-11-03 21:21:05 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-03 21:21:05 -0500
commit6d9f239a1edb31d6133230f478fd1dc2da338ec5 (patch)
tree305fa0da95a49db4e342f3f3042f8be0968b03ce /net/ipv4/ip_fragment.c
parent6cf3f41e6c08bca6641a695449791c38a25f35ff (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/ipv4/ip_fragment.c')
-rw-r--r--net/ipv4/ip_fragment.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/net/ipv4/ip_fragment.c b/net/ipv4/ip_fragment.c
index 1a3c37b5e936..6659ac000eeb 100644
--- a/net/ipv4/ip_fragment.c
+++ b/net/ipv4/ip_fragment.c
@@ -607,7 +607,7 @@ static struct ctl_table ip4_frags_ns_ctl_table[] = {
607 .data = &init_net.ipv4.frags.high_thresh, 607 .data = &init_net.ipv4.frags.high_thresh,
608 .maxlen = sizeof(int), 608 .maxlen = sizeof(int),
609 .mode = 0644, 609 .mode = 0644,
610 .proc_handler = &proc_dointvec 610 .proc_handler = proc_dointvec
611 }, 611 },
612 { 612 {
613 .ctl_name = NET_IPV4_IPFRAG_LOW_THRESH, 613 .ctl_name = NET_IPV4_IPFRAG_LOW_THRESH,
@@ -615,7 +615,7 @@ static struct ctl_table ip4_frags_ns_ctl_table[] = {
615 .data = &init_net.ipv4.frags.low_thresh, 615 .data = &init_net.ipv4.frags.low_thresh,
616 .maxlen = sizeof(int), 616 .maxlen = sizeof(int),
617 .mode = 0644, 617 .mode = 0644,
618 .proc_handler = &proc_dointvec 618 .proc_handler = proc_dointvec
619 }, 619 },
620 { 620 {
621 .ctl_name = NET_IPV4_IPFRAG_TIME, 621 .ctl_name = NET_IPV4_IPFRAG_TIME,
@@ -623,8 +623,8 @@ static struct ctl_table ip4_frags_ns_ctl_table[] = {
623 .data = &init_net.ipv4.frags.timeout, 623 .data = &init_net.ipv4.frags.timeout,
624 .maxlen = sizeof(int), 624 .maxlen = sizeof(int),
625 .mode = 0644, 625 .mode = 0644,
626 .proc_handler = &proc_dointvec_jiffies, 626 .proc_handler = proc_dointvec_jiffies,
627 .strategy = &sysctl_jiffies 627 .strategy = sysctl_jiffies
628 }, 628 },
629 { } 629 { }
630}; 630};
@@ -636,15 +636,15 @@ static struct ctl_table ip4_frags_ctl_table[] = {
636 .data = &ip4_frags.secret_interval, 636 .data = &ip4_frags.secret_interval,
637 .maxlen = sizeof(int), 637 .maxlen = sizeof(int),
638 .mode = 0644, 638 .mode = 0644,
639 .proc_handler = &proc_dointvec_jiffies, 639 .proc_handler = proc_dointvec_jiffies,
640 .strategy = &sysctl_jiffies 640 .strategy = sysctl_jiffies
641 }, 641 },
642 { 642 {
643 .procname = "ipfrag_max_dist", 643 .procname = "ipfrag_max_dist",
644 .data = &sysctl_ipfrag_max_dist, 644 .data = &sysctl_ipfrag_max_dist,
645 .maxlen = sizeof(int), 645 .maxlen = sizeof(int),
646 .mode = 0644, 646 .mode = 0644,
647 .proc_handler = &proc_dointvec_minmax, 647 .proc_handler = proc_dointvec_minmax,
648 .extra1 = &zero 648 .extra1 = &zero
649 }, 649 },
650 { } 650 { }