Remove the redundant skb->dev initialization in ip6_fragment
authorChenbo Feng <fengc@google.com>
Sat, 10 Jun 2017 19:35:38 +0000 (12:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Jun 2017 20:25:21 +0000 (16:25 -0400)
After moves the skb->dev and skb->protocol initialization into
ip6_output, setting the skb->dev inside ip6_fragment is unnecessary.

Fixes: 97a7a37a7b7b("ipv6: Initial skb->dev and skb->protocol in ip6_output")
Signed-off-by: Chenbo Feng <fengc@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_output.c

index 02cd44f..0d6f3b6 100644 (file)
@@ -869,7 +869,6 @@ fail_toobig:
        if (skb->sk && dst_allfrag(skb_dst(skb)))
                sk_nocaps_add(skb->sk, NETIF_F_GSO_MASK);
 
-       skb->dev = skb_dst(skb)->dev;
        icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu);
        err = -EMSGSIZE;