]> git.baikalelectronics.ru Git - kernel.git/commit
spi: npcm: Remove set but not used variable 'val'
authorzhengbin <zhengbin13@huawei.com>
Wed, 9 Oct 2019 00:37:17 +0000 (08:37 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 9 Oct 2019 17:20:16 +0000 (18:20 +0100)
commitc077804305294d446d43631c6a3756746586f2a3
treeede3044860a05ea80ba708bdc6083243c242fc9b
parentbefaaa283046fd4483a3425a9d212ec546a48da2
spi: npcm: Remove set but not used variable 'val'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/spi/spi-npcm-pspi.c: In function npcm_pspi_handler:
drivers/spi/spi-npcm-pspi.c:296:6: warning: variable val set but not used [-Wunused-but-set-variable]

It is not used since commit 30bfa746aba0 ("spi:
npcm: add NPCM PSPI controller driver")

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Link: https://lore.kernel.org/r/1570581437-104549-3-git-send-email-zhengbin13@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-npcm-pspi.c