summaryrefslogtreecommitdiff
path: root/drivers/staging/iio/inkern.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/iio/inkern.c')
-rw-r--r--drivers/staging/iio/inkern.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/iio/inkern.c b/drivers/staging/iio/inkern.c
index de2c8ea64965..ef07a02bf542 100644
--- a/drivers/staging/iio/inkern.c
+++ b/drivers/staging/iio/inkern.c
@@ -82,6 +82,7 @@ int iio_map_array_unregister(struct iio_dev *indio_dev,
ret = -ENODEV;
goto error_ret;
}
+ i++;
}
error_ret:
mutex_unlock(&iio_map_list_lock);