Skip to content

Commit 89dfba3

Browse files
Chenbo Fengdavem330
authored andcommitted
Remove the redundant skb->dev initialization in ip6_fragment
After moves the skb->dev and skb->protocol initialization into ip6_output, setting the skb->dev inside ip6_fragment is unnecessary. Fixes: 97a7a37("ipv6: Initial skb->dev and skb->protocol in ip6_output") Signed-off-by: Chenbo Feng <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4abf5a6 commit 89dfba3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

net/ipv6/ip6_output.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,6 @@ int ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
869869
if (skb->sk && dst_allfrag(skb_dst(skb)))
870870
sk_nocaps_add(skb->sk, NETIF_F_GSO_MASK);
871871

872-
skb->dev = skb_dst(skb)->dev;
873872
icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu);
874873
err = -EMSGSIZE;
875874

0 commit comments

Comments
 (0)