Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751280AbdHXFgT (ORCPT ); Thu, 24 Aug 2017 01:36:19 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:60826 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751019AbdHXFgS (ORCPT ); Thu, 24 Aug 2017 01:36:18 -0400 Date: Wed, 23 Aug 2017 22:36:17 -0700 (PDT) Message-Id: <20170823.223617.467388957481861020.davem@davemloft.net> To: colin.king@canonical.com Cc: u9012063@gmail.com, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][V2][netdev-next] gre: remove duplicated assignment of iph From: David Miller In-Reply-To: <20170823115948.19884-1-colin.king@canonical.com> References: <20170823115948.19884-1-colin.king@canonical.com> X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 23 Aug 2017 22:36:17 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 523 Lines: 15 From: Colin King Date: Wed, 23 Aug 2017 12:59:48 +0100 > From: Colin Ian King > > 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 Much better, applied, thanks.