diff options
author | Vinod Koul <vinod.koul@intel.com> | 2016-12-09 15:24:12 +0530 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-12-12 22:25:22 +0530 |
commit | 920e00d62ef9a818a4af7b2f9e1dbca23f846fc1 (patch) | |
tree | 210194c042cba02ea2b847e700ba7e8ffed1b4a8 /drivers/dma | |
parent | 963173fe4875d77320360628f827b0a818d6772e (diff) | |
download | op-kernel-dev-920e00d62ef9a818a4af7b2f9e1dbca23f846fc1.zip op-kernel-dev-920e00d62ef9a818a4af7b2f9e1dbca23f846fc1.tar.gz |
dmaengine: pl330: remove unused ‘regs’
In pl330_add(), variable ‘regs’ is initialized but never used, which
leads to warning with W=1.
drivers/dma/pl330.c: In function 'pl330_add':
drivers/dma/pl330.c:1891:16: warning: variable 'regs' set but not used [-Wunused-but-set-variable]
So remove it.
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/pl330.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 2f3e063..87fd015 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -1888,11 +1888,8 @@ static int dmac_alloc_resources(struct pl330_dmac *pl330) static int pl330_add(struct pl330_dmac *pl330) { - void __iomem *regs; int i, ret; - regs = pl330->base; - /* Check if we can handle this DMAC */ if ((pl330->pcfg.periph_id & 0xfffff) != PERIPH_ID_VAL) { dev_err(pl330->ddma.dev, "PERIPH_ID 0x%x !\n", |