staging: iio: Remove unused variable

Remove variable that is initialized but not used.

Signed-off-by: Cristina Moraru <cristina.moraru09@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Cristina Moraru 2015-10-25 22:49:42 +02:00 committed by Greg Kroah-Hartman
parent df2f4c4e4b
commit 1c58f0eb9c

View File

@ -117,12 +117,10 @@ static int isl29018_set_integration_time(struct isl29018_chip *chip,
{
int i, ret;
unsigned int int_time, new_int_time;
struct isl29018_scale new_scale;
for (i = 0; i < ARRAY_SIZE(isl29018_int_utimes[chip->type]); ++i) {
if (utime == isl29018_int_utimes[chip->type][i]) {
new_int_time = i;
new_scale = isl29018_scales[new_int_time][0];
break;
}
}