aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6mr.c
diff options
context:
space:
mode:
authorRami Rosen <ramirose@gmail.com>2013-07-20 20:00:31 -0400
committerDavid S. Miller <davem@davemloft.net>2013-07-23 20:20:37 -0400
commit2b52c3ada8f4391d82d8088d9169ac2a8c4d0411 (patch)
tree71738043e06acbf75da27e91b1a5c3a28a54588d /net/ipv6/ip6mr.c
parentc4854ec8c483fb8deea7400c11cd7fd7c03e306c (diff)
ip6mr: change the prototype of ip6_mr_forward().
This patch changes the prototpye of the ip6_mr_forward() method to return void instead of int. The ip6_mr_forward() method always returns 0; moreover, the return value of this method is not checked anywhere. Signed-off-by: Rami Rosen <ramirose@gmail.com> Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6mr.c')
-rw-r--r--net/ipv6/ip6mr.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index 583e8d435f9a..6d78615f6726 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -110,8 +110,8 @@ static struct kmem_cache *mrt_cachep __read_mostly;
110static struct mr6_table *ip6mr_new_table(struct net *net, u32 id); 110static struct mr6_table *ip6mr_new_table(struct net *net, u32 id);
111static void ip6mr_free_table(struct mr6_table *mrt); 111static void ip6mr_free_table(struct mr6_table *mrt);
112 112
113static int ip6_mr_forward(struct net *net, struct mr6_table *mrt, 113static void ip6_mr_forward(struct net *net, struct mr6_table *mrt,
114 struct sk_buff *skb, struct mfc6_cache *cache); 114 struct sk_buff *skb, struct mfc6_cache *cache);
115static int ip6mr_cache_report(struct mr6_table *mrt, struct sk_buff *pkt, 115static int ip6mr_cache_report(struct mr6_table *mrt, struct sk_buff *pkt,
116 mifi_t mifi, int assert); 116 mifi_t mifi, int assert);
117static int __ip6mr_fill_mroute(struct mr6_table *mrt, struct sk_buff *skb, 117static int __ip6mr_fill_mroute(struct mr6_table *mrt, struct sk_buff *skb,
@@ -2069,8 +2069,8 @@ static int ip6mr_find_vif(struct mr6_table *mrt, struct net_device *dev)
2069 return ct; 2069 return ct;
2070} 2070}
2071 2071
2072static int ip6_mr_forward(struct net *net, struct mr6_table *mrt, 2072static void ip6_mr_forward(struct net *net, struct mr6_table *mrt,
2073 struct sk_buff *skb, struct mfc6_cache *cache) 2073 struct sk_buff *skb, struct mfc6_cache *cache)
2074{ 2074{
2075 int psend = -1; 2075 int psend = -1;
2076 int vif, ct; 2076 int vif, ct;
@@ -2151,12 +2151,11 @@ forward:
2151last_forward: 2151last_forward:
2152 if (psend != -1) { 2152 if (psend != -1) {
2153 ip6mr_forward2(net, mrt, skb, cache, psend); 2153 ip6mr_forward2(net, mrt, skb, cache, psend);
2154 return 0; 2154 return;
2155 } 2155 }
2156 2156
2157dont_forward: 2157dont_forward:
2158 kfree_skb(skb); 2158 kfree_skb(skb);
2159 return 0;
2160} 2159}
2161 2160
2162 2161