inetpeer: get rid of ip_id_count
[firefly-linux-kernel-4.4.55.git] / net / ipv4 / ipmr.c
index 49797ed0917c6ff644e471b3d28293d0459b5ef4..56d079b63ad3fe552db8dab66e9e18ae9edf2b3c 100644 (file)
@@ -1661,7 +1661,7 @@ static void ip_encap(struct sk_buff *skb, __be32 saddr, __be32 daddr)
        iph->protocol   =       IPPROTO_IPIP;
        iph->ihl        =       5;
        iph->tot_len    =       htons(skb->len);
-       ip_select_ident(skb, skb_dst(skb), NULL);
+       ip_select_ident(skb, NULL);
        ip_send_check(iph);
 
        memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt));