spi: qup: remove unnecessary goto
authorJorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Fri, 31 May 2019 14:46:36 +0000 (16:46 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 3 Jun 2019 16:53:43 +0000 (17:53 +0100)
Remove unnecessary condition check and associated goto.

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-qup.c

index 974a8ce58b68bc31e38d717ff16564aec398232e..314d91b95a16fa07e195434b347076cd324b2250 100644 (file)
@@ -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)