staging:iio:core add missing increment of loop index in iio_map_array_unregister()
staging:iio:core add missing increment of loop index in iio_map_array_unregister() Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de> Acked-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
50637f050e
commit
218f4d437d
|
@ -82,6 +82,7 @@ int iio_map_array_unregister(struct iio_dev *indio_dev,
|
||||||
ret = -ENODEV;
|
ret = -ENODEV;
|
||||||
goto error_ret;
|
goto error_ret;
|
||||||
}
|
}
|
||||||
|
i++;
|
||||||
}
|
}
|
||||||
error_ret:
|
error_ret:
|
||||||
mutex_unlock(&iio_map_list_lock);
|
mutex_unlock(&iio_map_list_lock);
|
||||||
|
|
Loading…
Reference in a new issue