aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/inkern.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iio/inkern.c b/drivers/iio/inkern.c
index 9a46ca61ef0..e2aded04996 100644
--- a/drivers/iio/inkern.c
+++ b/drivers/iio/inkern.c
@@ -193,7 +193,6 @@ struct iio_channel *iio_channel_get_all(const char *name)
193 c->map->adc_channel_label); 193 c->map->adc_channel_label);
194 if (chans[mapind].channel == NULL) { 194 if (chans[mapind].channel == NULL) {
195 ret = -EINVAL; 195 ret = -EINVAL;
196 iio_device_put(chans[mapind].indio_dev);
197 goto error_free_chans; 196 goto error_free_chans;
198 } 197 }
199 iio_device_get(chans[mapind].indio_dev); 198 iio_device_get(chans[mapind].indio_dev);