提交 39bc03bf 编写于 作者: A Andy Shevchenko 提交者: Mark Brown

spi: dw: move piece of code out of condition

There is no sense to keep a member assignment in the internal structure inside
the condition which reprograms HW. It makes code readability better if kept
outside of the condition.
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 c517d838
......@@ -494,10 +494,11 @@ static void pump_transfers(unsigned long data)
dw_writew(dws, DW_SPI_TXFLTR, txint_level);
spi_enable_chip(dws, 1);
if (cs_change)
dws->prev_chip = chip;
}
if (cs_change)
dws->prev_chip = chip;
if (dws->dma_mapped)
dws->dma_ops->dma_transfer(dws, cs_change);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册