OSDN Git Service

spi: dw: move piece of code out of condition
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 24 Feb 2015 11:32:10 +0000 (13:32 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 24 Feb 2015 14:43:33 +0000 (23:43 +0900)
commit39bc03bfecab38e7532449d54aeef3db817084af
treed26667c021fabf9545f6ee81abfba512faee16a5
parentc517d838eb7d07bbe9507871fab3931deccff539
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>
drivers/spi/spi-dw.c