OSDN Git Service

spi: omap2-mcspi: remove several redundant variables
authorColin Ian King <colin.king@canonical.com>
Mon, 30 Jul 2018 14:45:46 +0000 (15:45 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 30 Jul 2018 15:08:12 +0000 (16:08 +0100)
commit45e41bc5259242921da755c60c705ff368beb8ce
treef0ea08576964f464e762aa9e450a2cafa9e2c404
parentc2c25cc397026ec705e050248539df400d2563f8
spi: omap2-mcspi: remove several redundant variables

Variable count, l, mcspi and spi_cntrl are being assigned but are
never used hence they are redundant and can be removed.

Cleans up clang warnings:
warning: variable 'count' set but not used [-Wunused-but-set-variable]
warning: variable 'l' set but not used [-Wunused-but-set-variable]
warning: variable 'mcspi' set but not used [-Wunused-but-set-variable]
warning: variable 'spi_cntrl' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-omap2-mcspi.c