From: Colin Ian King Date: Wed, 23 Aug 2017 11:59:48 +0000 (+0100) Subject: gre: remove duplicated assignment of iph X-Git-Tag: v4.14-rc1~130^2~148 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=60890e046081aef61980dbc812ac5100ad078a87;p=platform%2Fkernel%2Flinux-rpi3.git gre: remove duplicated assignment of iph iph is being assigned the same value twice; remove the redundant first assignment. (Thanks to Nikolay Aleksandrov for pointing out that the first asssignment should be removed and not the second) Fixes warning: net/ipv4/ip_gre.c:265:2: warning: Value stored to 'iph' is never read Signed-off-by: Colin Ian King Reviewed-by: Nikolay Aleksandrov Signed-off-by: David S. Miller --- diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c index 5a20ba9..f706747 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c @@ -262,7 +262,6 @@ static int erspan_rcv(struct sk_buff *skb, struct tnl_ptk_info *tpi, int len; itn = net_generic(net, erspan_net_id); - iph = ip_hdr(skb); len = gre_hdr_len + sizeof(*ershdr); if (unlikely(!pskb_may_pull(skb, len)))