]> git.karo-electronics.de Git - linux-beck.git/commit
spi: fsl-lpspi: quit reading rx fifo under error condition
authorGao Pan <pandy.gao@nxp.com>
Fri, 2 Dec 2016 03:50:01 +0000 (11:50 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 5 Dec 2016 11:45:03 +0000 (11:45 +0000)
commitd989eed20791534dc624c7b29568b263c67a286f
tree440107ed52f4172f764b6dad26a3a0ee92479ddf
parentb6787b6807fb01b13f0f1a07cbb8eaf7853d1a6e
spi: fsl-lpspi: quit reading rx fifo under error condition

In case that error occurs during waiting for txfifo empty, it is
not necessary to read rx fifo. It's better to return directly.

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-lpspi.c