From patchwork Sat Feb 17 22:30:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 874824 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zkPsX70PTz9ryT for ; Sun, 18 Feb 2018 09:32:48 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 9E398C21E68; Sat, 17 Feb 2018 22:31:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 05537C21EA7; Sat, 17 Feb 2018 22:30:58 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C8568C21ED5; Sat, 17 Feb 2018 22:30:53 +0000 (UTC) Received: from mail-yw0-f193.google.com (mail-yw0-f193.google.com [209.85.161.193]) by lists.denx.de (Postfix) with ESMTPS id 6D9F4C21E08 for ; Sat, 17 Feb 2018 22:30:49 +0000 (UTC) Received: by mail-yw0-f193.google.com with SMTP id t129so2721705ywc.3 for ; Sat, 17 Feb 2018 14:30:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=IulDY7BEfuY/IASI/7NrgOFCRc5/TqcwjSR0GKBczVo=; b=f9vNSK8d/VX9V+HRp5xlViekfnnxjH2vQjHYxdA7UxH3nh7UZ8QtzV6xN/hfIfp8Pr yCACSq90aau3LU7mXZszOON591TvdDu0qrXBL7uVm+iaNN1DdbuQSlo1hS5nYJ5GjTUV KTYa04W7sb/5lcY2wPV4zKlLsX/yM0gPJrbxHIA/QrwEgIj/fniNUlInI6pQPik3NrpP nC/bTjKhcPHdRk3J302x/rEhtMSWkBpokZ4R9uDEO3zvbgsuQaVcZpkdDqRae3pehqNM fVw+Qnn7HKv25NPDeTG/O9v/0SmOYksb0ieolsDFpZBR5jrZhnm30T1SUasBdGDBEPlM pKLQ== X-Gm-Message-State: APf1xPAMvWEs8fR1TohXV1NsXP1bajrnA3/yI4Skld6Ms+Rtx2kpuZJt DRJ41PgecwCZfL5ex5BavADl X-Google-Smtp-Source: AH8x225S/D4pafx8kfTkvp0O3eJOTXaO3kJr+F1H3x6IH0/Re5ubgKTi7i2XR8VbaSXHwFeSWdwzzA== X-Received: by 10.129.59.21 with SMTP id i21mr7948179ywa.402.1518906648019; Sat, 17 Feb 2018 14:30:48 -0800 (PST) Received: from localhost.localdomain (cpe-65-184-142-68.ec.res.rr.com. [65.184.142.68]) by smtp.gmail.com with ESMTPSA id q130sm4066822ywg.28.2018.02.17.14.30.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 17 Feb 2018 14:30:46 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Date: Sat, 17 Feb 2018 17:30:40 -0500 Message-Id: <1518906642-13401-3-git-send-email-trini@konsulko.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518906642-13401-1-git-send-email-trini@konsulko.com> References: <1518906642-13401-1-git-send-email-trini@konsulko.com> Cc: Joe Hershberger Subject: [U-Boot] [PATCH 3/5] net: sh_eth: Fix unused variable warnings X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" With a newer toolchain we can see that in both sh_eth_phy_config_legacy and sh_eth_recv_common the variable port is never referenced as eth->port is always used instead. Cc: Joe Hershberger Signed-off-by: Tom Rini --- drivers/net/sh_eth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c index 850fe1587f59..6f48e93ab53d 100644 --- a/drivers/net/sh_eth.c +++ b/drivers/net/sh_eth.c @@ -517,7 +517,7 @@ static int sh_eth_start_common(struct sh_eth_dev *eth) #ifndef CONFIG_DM_ETH static int sh_eth_phy_config_legacy(struct sh_eth_dev *eth) { - int port = eth->port, ret = 0; + int ret = 0; struct sh_eth_info *port_info = ð->port_info[eth->port]; struct eth_device *dev = port_info->dev; struct phy_device *phydev; @@ -540,7 +540,7 @@ static int sh_eth_send_legacy(struct eth_device *dev, void *packet, int len) static int sh_eth_recv_common(struct sh_eth_dev *eth) { - int port = eth->port, len = 0; + int len = 0; struct sh_eth_info *port_info = ð->port_info[eth->port]; uchar *packet = (uchar *)ADDR_TO_P2(port_info->rx_desc_cur->rd2);