spi: spi-rspi: fix inconsistent spin_lock_irqsave
authorShimoda, Yoshihiro <yoshihiro.shimoda.uh@renesas.com>
Tue, 27 Aug 2013 02:15:09 +0000 (11:15 +0900)
committerMark Brown <broonie@linaro.org>
Tue, 27 Aug 2013 14:55:41 +0000 (15:55 +0100)
commit8d4d08ce8319ae26227c4dd558405963c14c2037
tree4213a4a7e5d68ca08b92e9523efbb2bc1b20d8ac
parente2b0509908aa5e874a1837a733422b6e8b8502b8
spi: spi-rspi: fix inconsistent spin_lock_irqsave

This patch fixes the following Smatch warning:

  CHECK   drivers/spi/spi-rspi.c
drivers/spi/spi-rspi.c:606 rspi_work() warn: inconsistent returns spin_lock:&rspi->lock: locked (602) unlocked (606)
drivers/spi/spi-rspi.c:606 rspi_work() warn: inconsistent returns irqsave:flags: locked (602) unlocked (606)

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-rspi.c