]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: ppc4xx: Drop write-only variable
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sat, 10 Feb 2024 16:40:08 +0000 (17:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:24:52 +0000 (09:24 +0100)
commit211db3da3f61d522729023d4b88df724ccffd22c
tree09032a923e0fad5284d92153ceaf1065b7c4500f
parent6a67bf10934c8f78988ebcc583476f3a21b7f848
spi: ppc4xx: Drop write-only variable

[ Upstream commit b3aa619a8b4706f35cb62f780c14e68796b37f3f ]

Since commit 24778be20f87 ("spi: convert drivers to use
bits_per_word_mask") the bits_per_word variable is only written to. The
check that was there before isn't needed any more as the spi core
ensures that only 8 bit transfers are used, so the variable can go away
together with all assignments to it.

Fixes: 24778be20f87 ("spi: convert drivers to use bits_per_word_mask")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20240210164006.208149-8-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-ppc4xx.c