From patchwork Wed Sep 26 13:12:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 147596 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp708173lji; Wed, 26 Sep 2018 06:13:00 -0700 (PDT) X-Google-Smtp-Source: ACcGV62Iv6MI0J6e0vHetNbEudHsmoisRY8hbgK5XaUy06jqlqz+6rUXzwfoYlEp75but91NFOv4 X-Received: by 2002:a17:902:9045:: with SMTP id w5-v6mr6245603plz.10.1537967580171; Wed, 26 Sep 2018 06:13:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537967580; cv=none; d=google.com; s=arc-20160816; b=I9jzwph7Ao9WVZUonWy+7YQOwJehkMl21cHq3ZB3YGfCrmn7pJs7FgFXMoiWPFAvnl jdv2r7MWmlapLNbVCHm4FB5VdQZx/xyXG7uoFMInx1HP8k+KLpIbvC57Egoq9JOu+UQb tpskq+QY58TrTpVs5YIRXXcHRiFmIwtzp8/6i576T/qp55zgG/eZ42ZXfI5QNbN+lwdW Bjf2z86yCx+SyW2P9LI2gVcy54B0D+s6PFlVaDLgrQvCufMh+wQZgYEBaA1iA5TqwR7+ kxrhxL/aovtjujDACQgYSH4G7L0C9DvchDlx5gRdwYhELXs2tM4ExdSF2F/Qd4eYLdcf 2y2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=eMjYEk/WfDA6gy5MzppAEXSUVMus+iy5lqRgSmmVlbY=; b=fGBKJrq41G4rxAd2geW+uHXNY1frL2g1IBVbCndgxY8Qhe67MuuDP8q4+Pli6Mqq0d HPiPvqb6gkc1EaG7WdoSyOuLLCm+mthmyj+S/YR3JS5Npp+rb7ExBhXhSk1WZlqwvZo2 kE8ahyRmMHf9403myxen//UdhUfWAVzUGcjboPOYagOzI2Kncrx0xKEvgkG9WCom1ZVj aBfPGTgP8iugZmnLgwEcwE0UuEK8Y0IOe7OoLSsqwK9LAo1KQihJkMQxTjmWZWUj+2wa c8802K/zVdYEDRzzmyyxj9sll63wSQnN8TjMA+cRu9eASwjGedPDpujGQ4T0Dd6MD7vw Olbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d71-v6si5101699pfg.115.2018.09.26.06.12.59; Wed, 26 Sep 2018 06:13:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728427AbeIZTZu (ORCPT + 32 others); Wed, 26 Sep 2018 15:25:50 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:41551 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726915AbeIZTZu (ORCPT ); Wed, 26 Sep 2018 15:25:50 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1MQ5jC-1gRErs41Ue-00M645; Wed, 26 Sep 2018 15:12:29 +0200 From: Arnd Bergmann To: Madalin Bucur , "David S. Miller" Cc: Arnd Bergmann , Andrew Lunn , Florian Fainelli , Yangbo Lu , Jake Moroni , "Gustavo A. R. Silva" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next] net: ethernet: dpaa: remove unused variables Date: Wed, 26 Sep 2018 15:12:13 +0200 Message-Id: <20180926131225.2661703-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:DngBfBogzBZURkwJM/GqC+x33DXFLQpFllWC94rGQDoz1sDzX5O ItpWyQYrIU0tQzm61Vkll7vYxf70YgDNffiBEZ5UWO8IBTOuxV8S99czZQMbbCpfNdZOoDY mI80qtqkRIdV4oKEIDoKxqagbHD1Edk0y39J1a3EXWYNzgKD9OORv1D7IAEmp26tlmGZQQf ltiztj8UPOxP2VqhL+ODQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V01:K0:/VEmaOEE2jQ=:AhnfjAbqweGv3/aehTbaBr dOYnyb4DpgxGRLwIinfgOBa2OEF+nxK7DoZkzJBmjU0PGPEORr/bH4rBlsh6262/+7QNkbpjD nx2U15FUIz64dgL7EQZjyipHTMoTm/5/SUQePNfY+qk5bWsuRuYUu+bu+uz9CJjSQ8Pd5CCEI BgJ6YqD5ztWZ6r7G2C/SlubTUHNztGleYftYhyisR9IbeZcDuVlEk3MBGjeCttxnq+dgT2m8Y +Jyt4+zJ6f1FzLyClfY3wH6lF6FPbWRYq5I5ABnkExKYxNDPHA3V2ubUB0uXfddOWDqRKE0Ek fHsNiAc9tEpAV20Cx2uSQ+lLIsdirfMb33pqvZB0mjf5xuasx5Y5fVaIySBfxSFKAkaUUwFhl nS69J1EPXAiBWQIUNJFrpwks31WoJ/3z1Id5VrfUgFVz0sVezbnqhfA7J7r/4FpjTZFFbQvzL GUkJ7g60Ky+C/L6tNV4SYkhqT8ZfowESbEbFo74eGDpg0u7qa7bt6pBozMf42PkJR/4F0hW2K ufS8MBa+fBYixoSVDQbV/NFOR+vm7MvK4nEeQJHRHjcA3UzInEhuS/GcHd+kmcWcii1lQNrop G6EuL6vWK5AyJhT8XZXJUeiNv72xuovbMkxxFvP6UbdxnYrc/S9YwG3V0I8Q7m1beKOt3wkcP Mq09jiyYhWe1ANJ2mNs1KcgX0h39NfM7QHKuJNpxoE+AZol59K9uhTpCUkzAG0GzFRls= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch that removed the only users of the oldadv/newadv variables accidentally left the now-unused declarations behind: drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c: In function 'dpaa_set_pauseparam': drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c:185:14: error: unused variable 'oldadv' [-Werror=unused-variable] drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c:185:6: error: unused variable 'newadv' [-Werror=unused-variable] Fixes: 70814e819c11 ("net: ethernet: Add helper for set_pauseparam for Asym Pause") Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c | 1 - 1 file changed, 1 deletion(-) -- 2.18.0 diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c b/drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c index 5d0fdf667b82..13d6e2272ece 100644 --- a/drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c +++ b/drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c @@ -182,7 +182,6 @@ static int dpaa_set_pauseparam(struct net_device *net_dev, struct phy_device *phydev; bool rx_pause, tx_pause; struct dpaa_priv *priv; - u32 newadv, oldadv; int err; priv = netdev_priv(net_dev);