Skip to content

Commit 2b52c3a

Browse files
ramirosendavem330
authored andcommitted
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>
1 parent c4854ec commit 2b52c3a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

net/ipv6/ip6mr.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ static struct kmem_cache *mrt_cachep __read_mostly;
110110
static struct mr6_table *ip6mr_new_table(struct net *net, u32 id);
111111
static void ip6mr_free_table(struct mr6_table *mrt);
112112

113-
static int ip6_mr_forward(struct net *net, struct mr6_table *mrt,
114-
struct sk_buff *skb, struct mfc6_cache *cache);
113+
static void ip6_mr_forward(struct net *net, struct mr6_table *mrt,
114+
struct sk_buff *skb, struct mfc6_cache *cache);
115115
static int ip6mr_cache_report(struct mr6_table *mrt, struct sk_buff *pkt,
116116
mifi_t mifi, int assert);
117117
static 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)
20692069
return ct;
20702070
}
20712071

2072-
static int ip6_mr_forward(struct net *net, struct mr6_table *mrt,
2073-
struct sk_buff *skb, struct mfc6_cache *cache)
2072+
static void ip6_mr_forward(struct net *net, struct mr6_table *mrt,
2073+
struct sk_buff *skb, struct mfc6_cache *cache)
20742074
{
20752075
int psend = -1;
20762076
int vif, ct;
@@ -2151,12 +2151,11 @@ static int ip6_mr_forward(struct net *net, struct mr6_table *mrt,
21512151
last_forward:
21522152
if (psend != -1) {
21532153
ip6mr_forward2(net, mrt, skb, cache, psend);
2154-
return 0;
2154+
return;
21552155
}
21562156

21572157
dont_forward:
21582158
kfree_skb(skb);
2159-
return 0;
21602159
}
21612160

21622161

0 commit comments

Comments
 (0)