]> git.baikalelectronics.ru Git - kernel.git/commit
spi: Remove a redundant test for master->running in spi_queued_transfer
authorAxel Lin <axel.lin@ingics.com>
Thu, 22 Aug 2013 15:41:34 +0000 (23:41 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 22 Aug 2013 18:07:09 +0000 (19:07 +0100)
commit1e81a337277f431b0bdf288193fcb4660b1fa197
treefdb80b35723b9e7493afc0b9b49b654d2ce6c506
parent7389eb40d97a7be49653b327fc3faf73333a31e2
spi: Remove a redundant test for master->running in spi_queued_transfer

We have tested master->running immediately after grab the master->queue_lock.
The status of master->running won't be changed until we release the lock.
Thus remove a redundant test for master->running.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi.c