mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Reviewed-by: Nikolay Aleksandrov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
042a90106b
commit
60890e0460
1 changed files with 0 additions and 1 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue