]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit96c9060f70050c5c8c5a145528735249fb0307b7
treef0ea08576964f464e762aa9e450a2cafa9e2c404
parent08653774c0926241958adf0d71a09e245bccb2c1
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