summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorHiep Cao Minh <cm-hiep@jinso.co.jp>2015-05-22 11:59:37 +0200
committerMark Brown <broonie@kernel.org>2015-06-02 15:58:58 +0200
commitcc2e9328ed09cfd07c2b18e7d9d1826f30df9ec0 (patch)
tree3ff688fb560aed85cf6a112facd7e93bb322c91a /drivers/spi
parentspi: rspi: modify the name of "qspi_trigger_transfer_out_int" function (diff)
downloadlinux-cc2e9328ed09cfd07c2b18e7d9d1826f30df9ec0.tar.xz
linux-cc2e9328ed09cfd07c2b18e7d9d1826f30df9ec0.zip
spi: rspi: Re-do the returning value of qspi_transfer_out_in
To reduce complexity of code, drop "ret" then qspi_transfer_out_in function should return the value of "qspi_trigger_transfer_out_in" directly. Signed-off-by: Hiep Cao Minh <cm-hiep@jinso.co.jp> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-rspi.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c
index 45007236f992..f9189a0c8cec 100644
--- a/drivers/spi/spi-rspi.c
+++ b/drivers/spi/spi-rspi.c
@@ -768,12 +768,8 @@ static int qspi_transfer_out_in(struct rspi_data *rspi,
if (ret != -EAGAIN)
return ret;
- ret = qspi_trigger_transfer_out_in(rspi, xfer->tx_buf,
+ return qspi_trigger_transfer_out_in(rspi, xfer->tx_buf,
xfer->rx_buf, xfer->len);
- if (ret < 0)
- return ret;
-
- return 0;
}
static int qspi_transfer_out(struct rspi_data *rspi, struct spi_transfer *xfer)