summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorLothar Waßmann <LW@KARO-electronics.de>2012-03-24 10:19:25 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-10 20:17:33 +0400
commit218f4d437d69b4621f36affd52dcd6343597149a (patch)
tree2b21d8d76ea9fd6f9ad7a660f40e00d4e2ca4818 /drivers/staging
parent50637f050e88fb175135de62a53be33c374a5349 (diff)
downloadlinux-218f4d437d69b4621f36affd52dcd6343597149a.tar.xz
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>
Diffstat (limited to 'drivers/staging')
-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);