iio: ad_sigma_delta: return directly in ad_sd_buffer_postenable()

There is nothing being done after the `err_predisable` label, so just
remove it.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
Alexandru Ardelean 2019-05-30 10:25:41 +03:00 committed by Jonathan Cameron
parent 075da9cd6a
commit 387c1d7706

View File

@ -358,7 +358,7 @@ static int ad_sd_buffer_postenable(struct iio_dev *indio_dev)
ret = ad_sigma_delta_set_channel(sigma_delta,
indio_dev->channels[channel].address);
if (ret)
goto err_predisable;
return ret;
spi_bus_lock(sigma_delta->spi->master);
sigma_delta->bus_locked = true;
@ -375,7 +375,6 @@ static int ad_sd_buffer_postenable(struct iio_dev *indio_dev)
err_unlock:
spi_bus_unlock(sigma_delta->spi->master);
err_predisable:
return ret;
}