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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Andy Shevchenko 2015-02-24 13:32:10 +02:00 committed by Mark Brown
parent c517d838eb
commit 39bc03bfec
1 changed files with 3 additions and 2 deletions

View File

@ -494,9 +494,10 @@ 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 (dws->dma_mapped)
dws->dma_ops->dma_transfer(dws, cs_change);