Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 920e00d6 authored by Vinod Koul's avatar Vinod Koul
Browse files

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: default avatarVinod Koul <vinod.koul@intel.com>
parent 963173fe
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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",