From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754254AbcKJAAQ (ORCPT ); Wed, 9 Nov 2016 19:00:16 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:44954 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753610AbcKJAAO (ORCPT ); Wed, 9 Nov 2016 19:00:14 -0500 Date: Wed, 09 Nov 2016 19:00:11 -0500 (EST) Message-Id: <20161109.190011.497365572468997601.davem@davemloft.net> To: arnd@arndb.de Cc: jbenc@redhat.com, hannes@stressinduktion.org, aduyck@mirantis.com, pshelar@ovn.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] vxlan: hide unused local variable From: David Miller In-Reply-To: <20161107211017.857340-1-arnd@arndb.de> References: <20161107211017.857340-1-arnd@arndb.de> X-Mailer: Mew version 6.7 on Emacs 25.1 / 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, 09 Nov 2016 15:00:43 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann Date: Mon, 7 Nov 2016 22:09:07 +0100 > A bugfix introduced a harmless warning in v4.9-rc4: > > drivers/net/vxlan.c: In function 'vxlan_group_used': > drivers/net/vxlan.c:947:21: error: unused variable 'sock6' [-Werror=unused-variable] > > This hides the variable inside of the same #ifdef that is > around its user. The extraneous initialization is removed > at the same time, it was accidentally introduced in the > same commit. > > Fixes: c6fcc4fc5f8b ("vxlan: avoid using stale vxlan socket.") > Signed-off-by: Arnd Bergmann Applied.