From: Chenbo Feng Date: Sat, 10 Jun 2017 19:35:38 +0000 (-0700) Subject: FROMLIST: Remove the redundant skb->dev initialization in ip6_fragment X-Git-Tag: khadas-vims-v0.9.6-release~1584^2~675 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d937a80c5f34fb2e932c36cf27c82f5b0b00d05f;p=platform%2Fkernel%2Flinux-amlogic.git FROMLIST: 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: 97a7a37a7b7b("ipv6: Initial skb->dev and skb->protocol in ip6_output") Signed-off-by: Chenbo Feng Signed-off-by: David S. Miller (url: http://patchwork.ozlabs.org/patch/774260/) Bug: 30950746 Change-Id: I6ab42ecca2e2ab57f2c5988edf19d584de35e007 --- diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index 1b2ed0e..7cec180 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c @@ -867,7 +867,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;