diff mbox series

spi: qup: remove unnecessary goto

Message ID 20190531144636.27843-1-jorge.ramirez-ortiz@linaro.org
State Accepted
Commit 3594bfa265da38dcfbab2312ddaff39711b98857
Headers show
Series spi: qup: remove unnecessary goto | expand

Commit Message

Jorge Ramirez-Ortiz May 31, 2019, 2:46 p.m. UTC
Remove unnecessary condition check and associated goto.

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>

---
 drivers/spi/spi-qup.c | 4 ----
 1 file changed, 4 deletions(-)

-- 
2.21.0
diff mbox series

Patch

diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c
index 974a8ce58b68..314d91b95a16 100644
--- a/drivers/spi/spi-qup.c
+++ b/drivers/spi/spi-qup.c
@@ -842,10 +842,6 @@  static int spi_qup_transfer_one(struct spi_master *master,
 	else
 		ret = spi_qup_do_pio(spi, xfer, timeout);
 
-	if (ret)
-		goto exit;
-
-exit:
 	spi_qup_set_state(controller, QUP_STATE_RESET);
 	spin_lock_irqsave(&controller->lock, flags);
 	if (!ret)