From patchwork Fri Sep 2 14:26:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Burton X-Patchwork-Id: 665223 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3sQhKv1qKpz9sf9 for ; Sat, 3 Sep 2016 00:27:47 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932343AbcIBO1b (ORCPT ); Fri, 2 Sep 2016 10:27:31 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:16279 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932254AbcIBO13 (ORCPT ); Fri, 2 Sep 2016 10:27:29 -0400 Received: from HHMAIL01.hh.imgtec.org (unknown [10.100.10.19]) by Forcepoint Email with ESMTPS id 3F511A8A5FE6E; Fri, 2 Sep 2016 15:27:14 +0100 (IST) Received: from localhost (10.100.200.40) by HHMAIL01.hh.imgtec.org (10.100.10.21) with Microsoft SMTP Server (TLS) id 14.3.294.0; Fri, 2 Sep 2016 15:27:16 +0100 From: Paul Burton To: CC: Paul Burton , , Andrew Lunn , Florian Westphal , Florian Fainelli , "David S. Miller" Subject: [PATCH] net: lantiq_etop: Remove unused 'i' variable Date: Fri, 2 Sep 2016 15:26:54 +0100 Message-ID: <20160902142654.4195-1-paul.burton@imgtec.com> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 X-Originating-IP: [10.100.200.40] Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Commit e7f4dc3536a4 ("mdio: Move allocation of interrupts into core") removed the only use of the 'i' variable from ltq_etop_mdio_init() but left the variable declaration behind, leading to the following compiler warning: drivers/net/ethernet/lantiq_etop.c: In function 'ltq_etop_mdio_init': drivers/net/ethernet/lantiq_etop.c:414:6: warning: unused variable 'i' [-Wunused-variable] int i; ^ Fix this by removing the declaration of the 'i' variable. Signed-off-by: Paul Burton --- drivers/net/ethernet/lantiq_etop.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/lantiq_etop.c b/drivers/net/ethernet/lantiq_etop.c index dc82b1b..0d2f8e9 100644 --- a/drivers/net/ethernet/lantiq_etop.c +++ b/drivers/net/ethernet/lantiq_etop.c @@ -411,7 +411,6 @@ static int ltq_etop_mdio_init(struct net_device *dev) { struct ltq_etop_priv *priv = netdev_priv(dev); - int i; int err; priv->mii_bus = mdiobus_alloc();