Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753964AbdHWLNQ (ORCPT ); Wed, 23 Aug 2017 07:13:16 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:48093 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753691AbdHWLNO (ORCPT ); Wed, 23 Aug 2017 07:13:14 -0400 From: Colin King To: "David S . Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , netdev@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][netdev-next] gre: remove duplicated assignment of iph Date: Wed, 23 Aug 2017 12:13:05 +0100 Message-Id: <20170823111305.19185-1-colin.king@canonical.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 775 Lines: 27 From: Colin Ian King iph is being assigned the same value twice; remove the redundant second assignment. Fixes warning: net/ipv4/ip_gre.c:265:2: warning: Value stored to 'iph' is never read Signed-off-by: Colin Ian King --- net/ipv4/ip_gre.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c index 6e8a62289e03..6b3e7c99a3b6 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c @@ -268,7 +268,6 @@ static int erspan_rcv(struct sk_buff *skb, struct tnl_ptk_info *tpi, if (unlikely(!pskb_may_pull(skb, len))) return -ENOMEM; - iph = ip_hdr(skb); ershdr = (struct erspanhdr *)(skb->data + gre_hdr_len); /* The original GRE header does not have key field, -- 2.14.1