[PATCH] staging: iio: Remove unused variable
Daniel Baluta
daniel.baluta at gmail.com
Sun Oct 25 22:31:02 EET 2015
On Thu, Oct 22, 2015 at 12:55 AM, Cristina Moraru
<cristina.moraru09 at gmail.com> wrote:
> Remove variable that is initialized but not used.
>
> Signed-off-by: Cristina Moraru <cristina.moraru09 at gmail.com>
Looks good.
> ---
> drivers/staging/iio/light/isl29018.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/staging/iio/light/isl29018.c b/drivers/staging/iio/light/isl29018.c
> index 73109dd..bbf7e35 100644
> --- a/drivers/staging/iio/light/isl29018.c
> +++ b/drivers/staging/iio/light/isl29018.c
> @@ -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;
> }
> }
> --
> 1.9.1
>
More information about the firefly
mailing list