Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: ipv6: ip6mr: Make ip6mr_forward2() void

Nobody uses the return value, so convert the function to void.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Link: https://patch.msgid.link/e0bee259da0da58da96647ea9e21e6360c8f7e11.1750113335.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Petr Machata and committed by
Jakub Kicinski
094f39d5 3365afd3

+6 -6
+6 -6
net/ipv6/ip6mr.c
··· 2035 2035 * Processing handlers for ip6mr_forward 2036 2036 */ 2037 2037 2038 - static int ip6mr_forward2(struct net *net, struct mr_table *mrt, 2039 - struct sk_buff *skb, int vifi) 2038 + static void ip6mr_forward2(struct net *net, struct mr_table *mrt, 2039 + struct sk_buff *skb, int vifi) 2040 2040 { 2041 2041 struct vif_device *vif = &mrt->vif_table[vifi]; 2042 2042 struct net_device *indev = skb->dev; ··· 2101 2101 2102 2102 IP6CB(skb)->flags |= IP6SKB_FORWARDED; 2103 2103 2104 - return NF_HOOK(NFPROTO_IPV6, NF_INET_FORWARD, 2105 - net, NULL, skb, indev, skb->dev, 2106 - ip6mr_forward2_finish); 2104 + NF_HOOK(NFPROTO_IPV6, NF_INET_FORWARD, 2105 + net, NULL, skb, indev, skb->dev, 2106 + ip6mr_forward2_finish); 2107 + return; 2107 2108 2108 2109 out_free: 2109 2110 kfree_skb(skb); 2110 - return 0; 2111 2111 } 2112 2112 2113 2113 /* Called with rcu_read_lock() */