From patchwork Thu Jan 18 13:19:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 124951 Delivered-To: patch@linaro.org Received: by 10.46.64.27 with SMTP id n27csp123290lja; Thu, 18 Jan 2018 05:20:55 -0800 (PST) X-Google-Smtp-Source: ACJfBov27Dvs3i07uvwB4OsHBBghDpbmAE3Yz56jBNO/sDVzWC0xQTdkQCYH4F7uh57yNZrVQb+5 X-Received: by 10.101.96.3 with SMTP id m3mr9096347pgu.409.1516281655189; Thu, 18 Jan 2018 05:20:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516281655; cv=none; d=google.com; s=arc-20160816; b=fU2Wtkkmgg8FxkoAwKer6KGWnPTzHiiz85tE5XkZ+4ZJui8g6a1gxYcE6tQdqAQoJe zrXjmjMJwM3T4BUuTfNivpP3uQl82r+KvieIHbSFIU5FzBm4TepebmlOXBzzIw4D+nBs oT8X3PPJoMEdmP3L8vXmrYcQ6YLWfVFcfV1/0FjDrqstrxy0xnVV1sNmX4Ov89gDGsie /jjxILLQMuH0MbsOSP1jGRrQQSE4SHOOGheYP7Op9sjWpwPppAhN+3TZKWnGIaEFC/U5 Wq1XidkOOJ7o0vngPTDWrRLQxDSW1TFhZlSE4T7fWARHQ/aFhFVaNq+nvoo/sZ0doUJ9 Kjxg== 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 :arc-authentication-results; bh=YsUlQ6MZVsGlQKEntdDKvQIftp+s9TmEItWWpgh8Rrs=; b=p5syBSV2STAztidF5NE/R2yrqvnr2uljgiJS7USUarCdhjfWBT1ZuoFP4vSJyUb13a AUh/Iv2PBXEdmUTB/5SlRLJSuElDMyvN9oZo/OERushkl/r7WvV1GFIOEkXAQLsQ7oKG OsMacG5q/r9YXXd/3LVlWJEkbBXggCwzMGYKMzX2RhFOIAXtCD38eQ9c3I2n2g1acfn6 1LVvkrRPyvgT9cX/YVPV54oPCcwr1DLYEZsTmk2uvbYhcvlDv8Ba18hVPMMe6mQYGihh YN1pbL0/Rs1sW7JOJBtTeOuobz7WkLyBoUm6vHv1p56XtehUaFDqNF5pi7PU5EUoHMTN R2xA== 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 o19si6180732pgn.677.2018.01.18.05.20.54; Thu, 18 Jan 2018 05:20:55 -0800 (PST) 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 S932505AbeARNUx (ORCPT + 28 others); Thu, 18 Jan 2018 08:20:53 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:52983 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932199AbeARNUv (ORCPT ); Thu, 18 Jan 2018 08:20:51 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue006 [212.227.15.129]) with ESMTPA (Nemesis) id 0LhYH7-1f779R3yaX-00mtZ0; Thu, 18 Jan 2018 14:20:45 +0100 From: Arnd Bergmann To: Tejun Heo Cc: Arnd Bergmann , Kishon Vijay Abraham I , Florian Fainelli , Srinath Mannam , linux-kernel@vger.kernel.org Subject: [PATCH] phy: brcm-sata: remove unused variable Date: Thu, 18 Jan 2018 14:19:58 +0100 Message-Id: <20180118132043.992893-1-arnd@arndb.de> X-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A== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The newly introduced calibrate function has a variable that has never been used and needs to be removed to avoid this harmless warning: drivers/phy/broadcom/phy-brcm-sata.c: In function 'brcm_stb_sata_calibrate': drivers/phy/broadcom/phy-brcm-sata.c:514:24: error: unused variable 'priv' [-Werror=unused-variable] Fixes: 3e507769d15e ("phy: brcm-sata: Implement calibrate callback") Signed-off-by: Arnd Bergmann --- drivers/phy/broadcom/phy-brcm-sata.c | 1 - 1 file changed, 1 deletion(-) -- 2.9.0 diff --git a/drivers/phy/broadcom/phy-brcm-sata.c b/drivers/phy/broadcom/phy-brcm-sata.c index 5dd9ebeac750..8708ea3b4d6d 100644 --- a/drivers/phy/broadcom/phy-brcm-sata.c +++ b/drivers/phy/broadcom/phy-brcm-sata.c @@ -511,7 +511,6 @@ static int brcm_sata_phy_init(struct phy *phy) static void brcm_stb_sata_calibrate(struct brcm_sata_port *port) { void __iomem *base = brcm_sata_pcb_base(port); - struct brcm_sata_phy *priv = port->phy_priv; u32 tmp = BIT(8); brcm_sata_phy_wr(base, RXPMD_REG_BANK, RXPMD_RX_FREQ_MON_CONTROL1,