[PATCH -next] pinctrl: sirf: atlas7: remove set but not used variables 'conf, bank'

Linus Walleij linus.walleij at linaro.org
Wed Sep 5 03:13:42 PDT 2018


On Fri, Aug 31, 2018 at 3:58 AM YueHaibing <yuehaibing at huawei.com> wrote:

> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/pinctrl/sirf/pinctrl-atlas7.c: In function 'atlas7_pinmux_resume_noirq':
> drivers/pinctrl/sirf/pinctrl-atlas7.c:5545:6: warning:
>  variable 'bank' set but not used [-Wunused-but-set-variable]
>   u32 bank;
>
> drivers/pinctrl/sirf/pinctrl-atlas7.c:5543:28: warning:
>  variable 'conf' set but not used [-Wunused-but-set-variable]
>   struct atlas7_pad_config *conf;
>
> Signed-off-by: YueHaibing <yuehaibing at huawei.com>

Patch applied.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list