spi: qup: remove unnecessary goto
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>
This commit is contained in:
parent
c6e2d2c7ca
commit
3594bfa265
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue