]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: iio: Remove unused variable
authorCristina Moraru <cristina.moraru09@gmail.com>
Sun, 25 Oct 2015 20:49:42 +0000 (22:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Oct 2015 05:49:09 +0000 (14:49 +0900)
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>
drivers/staging/iio/light/isl29018.c

index 73109dd4011419fe57c6917e6a8b29088fd1a1a6..bbf7e35cbc7d1f0eda8fb4db58bc23fe2c4a3674 100644 (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;
                }
        }