ata: sata_rcar: Remove unused variable in sata_rcar_init_controller()

Message ID 1518525803-17378-1-git-send-email-geert+renesas@glider.be
State Not Applicable
Delegated to: David Miller
Headers show
Series
  • ata: sata_rcar: Remove unused variable in sata_rcar_init_controller()
Related show

Commit Message

Geert Uytterhoeven Feb. 13, 2018, 12:43 p.m.
drivers/ata/sata_rcar.c: In function 'sata_rcar_init_controller':
drivers/ata/sata_rcar.c:821:8: warning: unused variable 'base' [-Wunused-variable]

Fixes: da77d76b95a0e894 ("sata_rcar: Reset SATA PHY when Salvator-X board resumes")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/ata/sata_rcar.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Tejun Heo Feb. 13, 2018, 2:40 p.m. | #1
On Tue, Feb 13, 2018 at 01:43:23PM +0100, Geert Uytterhoeven wrote:
> drivers/ata/sata_rcar.c: In function 'sata_rcar_init_controller':
> drivers/ata/sata_rcar.c:821:8: warning: unused variable 'base' [-Wunused-variable]
> 
> Fixes: da77d76b95a0e894 ("sata_rcar: Reset SATA PHY when Salvator-X board resumes")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Applied to libata/for-4.16-fixes.

Thanks.

Patch

diff --git a/drivers/ata/sata_rcar.c b/drivers/ata/sata_rcar.c
index 6f47ca34767d74fe..6456e07db72a7ea4 100644
--- a/drivers/ata/sata_rcar.c
+++ b/drivers/ata/sata_rcar.c
@@ -818,7 +818,6 @@  static void sata_rcar_init_module(struct sata_rcar_priv *priv)
 static void sata_rcar_init_controller(struct ata_host *host)
 {
 	struct sata_rcar_priv *priv = host->private_data;
-	void __iomem *base = priv->base;
 
 	/* reset and setup phy */
 	switch (priv->type) {