Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60890e04 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 042a9010
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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)))