Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

-3
-3
drivers/dma/pl330.c
··· 1888 1888 1889 1889 static int pl330_add(struct pl330_dmac *pl330) 1890 1890 { 1891 - void __iomem *regs; 1892 1891 int i, ret; 1893 - 1894 - regs = pl330->base; 1895 1892 1896 1893 /* Check if we can handle this DMAC */ 1897 1894 if ((pl330->pcfg.periph_id & 0xfffff) != PERIPH_ID_VAL) {