]> git.baikalelectronics.ru Git - kernel.git/commit
spi: pxa2xx: Remove if statement that is always true in pump_transfers()
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Tue, 15 Sep 2015 13:26:27 +0000 (16:26 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 17 Sep 2015 17:36:14 +0000 (18:36 +0100)
commit80e270967afe09ab9fe324108c5da6d6b2b2c5a5
treee5eabdd47fc29a514fa805ade471bfa801f1088e
parent551312b6a4d3cd566c75782bc14d7ea767188e49
spi: pxa2xx: Remove if statement that is always true in pump_transfers()

This is continuation to previous commit by separating unindentation from
variable removal done in previous commit. As said SPI core have validated
both the speed_hz and bits_per_word and the if statement here evaluates
always to true.

Remove the test and unindent the code block accordingly. While at it remove
also needless "cr0 = chip->cr0" as cr0 will be overwritten anyway and fix
block comment style.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c