]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ata: Fix compiler warning with APM X-Gene host controller driver
authorLoc Ho <lho@apm.com>
Tue, 18 Mar 2014 18:14:37 +0000 (12:14 -0600)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:17:22 +0000 (21:17 -0600)
This patch fixes an compiler warning with APM X-Gene host controller
driver when compiled with DEBUG enabled.

Signed-off-by: Loc Ho <lho@apm.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
(cherry picked from commit 6a96918a6aa7b434d15710fc9e06589c6c8bd3a6)

drivers/ata/ahci_xgene.c

index fcf21f1a39f3e47586185b2d7696bbe95986a12a..77c89bf171f14723ec72e306191b96405ca4f2e2 100644 (file)
@@ -329,7 +329,7 @@ static int xgene_ahci_hw_init(struct ahci_host_priv *hpriv)
        writel(0xffffffff, hpriv->mmio + HOST_IRQ_STAT);
        readl(hpriv->mmio + HOST_IRQ_STAT); /* Force a barrier */
        writel(0, ctx->csr_core + INTSTATUSMASK);
-       readl(ctx->csr_core + INTSTATUSMASK); /* Force a barrier */
+       val = readl(ctx->csr_core + INTSTATUSMASK); /* Force a barrier */
        dev_dbg(ctx->dev, "top level interrupt mask 0x%X value 0x%08X\n",
                INTSTATUSMASK, val);