mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-04 04:04:19 +00:00
ip6mr: use goto to common label instead of opencoding
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
448eb71f40
commit
8da73b73ef
@ -1501,8 +1501,7 @@ static int ip6mr_forward2(struct sk_buff *skb, struct mfc6_cache *c, int vifi)
|
|||||||
vif->dev->stats.tx_bytes += skb->len;
|
vif->dev->stats.tx_bytes += skb->len;
|
||||||
vif->dev->stats.tx_packets++;
|
vif->dev->stats.tx_packets++;
|
||||||
ip6mr_cache_report(net, skb, vifi, MRT6MSG_WHOLEPKT);
|
ip6mr_cache_report(net, skb, vifi, MRT6MSG_WHOLEPKT);
|
||||||
kfree_skb(skb);
|
goto out_free;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user