Commit a021cac4 authored by Maxime Chevallier's avatar Maxime Chevallier Committed by Mark Brown

spi: imx: Remove duplicate variable assignments

Some fields in struct spi_imx_data are assigned a different value twice
in a row, in spi_imx_setupxfer.
Signed-off-by: default avatarMaxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 6576bf00
...@@ -1106,8 +1106,6 @@ static int spi_imx_setupxfer(struct spi_device *spi, ...@@ -1106,8 +1106,6 @@ static int spi_imx_setupxfer(struct spi_device *spi,
if (spi_imx->devtype_data->dynamic_burst && !spi_imx->slave_mode) { if (spi_imx->devtype_data->dynamic_burst && !spi_imx->slave_mode) {
u32 mask; u32 mask;
spi_imx->dynamic_burst = 0;
spi_imx->remainder = 0;
spi_imx->read_u32 = 1; spi_imx->read_u32 = 1;
mask = (1 << spi_imx->bits_per_word) - 1; mask = (1 << spi_imx->bits_per_word) - 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment