Re: [PATCH -next] gpiolib: remove set but not used variable 'config'

From: Linus Walleij
Date: Wed Jan 15 2020 - 08:39:50 EST


On Wed, Jan 8, 2020 at 1:11 PM YueHaibing <yuehaibing@xxxxxxxxxx> wrote:

> drivers/gpio/gpiolib.c: In function gpio_set_config:
> drivers/gpio/gpiolib.c:3053:16: warning:
> variable config set but not used [-Wunused-but-set-variable]
>
> commit d90f36851d65 ("gpiolib: have a single place
> of calling set_config()") left behind this unused variable.
>
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Patch applied with Bartosz' review tag.

Yours,
Linus Walleij