linux_dsm_epyc7002/drivers/pinctrl/actions
Geert Uytterhoeven 71fd5d07b7 pinctrl: actions: Fix uninitialized error in owl_pin_config_set()
With gcc 4.1.2:

    drivers/pinctrl/actions/pinctrl-owl.c: In function ‘owl_pin_config_set’:
    drivers/pinctrl/actions/pinctrl-owl.c:336: warning: ‘ret’ may be used uninitialized in this function

Indeed, if num_configs is zero, the uninitialized value will be returned
as an error code.

Fix this by preinitializing it to zero.

Fixes: 2242ddfbf4 ("pinctrl: actions: Add Actions S900 pinctrl driver")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2018-06-18 07:55:56 +02:00
..
Kconfig pinctrl: actions: Add gpio support for Actions S900 SoC 2018-05-23 10:35:24 +02:00
Makefile pinctrl: actions: Add Actions S900 pinctrl driver 2018-05-02 14:36:08 +02:00
pinctrl-owl.c pinctrl: actions: Fix uninitialized error in owl_pin_config_set() 2018-06-18 07:55:56 +02:00
pinctrl-owl.h pinctrl: actions: Add gpio support for Actions S900 SoC 2018-05-23 10:35:24 +02:00
pinctrl-s900.c pinctrl: actions: Add gpio support for Actions S900 SoC 2018-05-23 10:35:24 +02:00