spi: pxa2xx: Rewrite switch code block in interrupt_transfer
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 3 Oct 2018 15:55:22 +0000 (17:55 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 4 Oct 2018 14:33:55 +0000 (15:33 +0100)
commit2c1833767bd8d906489a91cbbcb151fe3b818b61
tree2054e90795db59220a704cfbdd1871b0d88f471a
parentc24bfa8f21b59283580043dada19a6e943b6e426
spi: pxa2xx: Rewrite switch code block in interrupt_transfer

Rewrite switch code block to directly do the expected number
of shifts in each case and have break statements.

Addresses-Coverity-ID: 1056539 ("Missing break in switch")
Suggested-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c