未验证 提交 a021cac4 编写于 作者: M Maxime Chevallier 提交者: 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: NMaxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 6576bf00
......@@ -1106,8 +1106,6 @@ static int spi_imx_setupxfer(struct spi_device *spi,
if (spi_imx->devtype_data->dynamic_burst && !spi_imx->slave_mode) {
u32 mask;
spi_imx->dynamic_burst = 0;
spi_imx->remainder = 0;
spi_imx->read_u32 = 1;
mask = (1 << spi_imx->bits_per_word) - 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册