gpiolib: remove set but not used variable 'config'
authorYueHaibing <yuehaibing@huawei.com>
Wed, 8 Jan 2020 12:11:17 +0000 (20:11 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 15 Jan 2020 13:38:49 +0000 (14:38 +0100)
commite5e42ad224a040f93bf112e96f82b3a0ed97ffab
tree17213e9d58c0c56637672dee0bdee9e58024705e
parente81ccba69549630838f8e40cd3369607db8613c9
gpiolib: remove set but not used variable 'config'

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@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20200108121117.45060-1-yuehaibing@huawei.com
Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c