Re: [PATCH 1/1] pinctrl: mediatek: correct error handling

2020-12-27 Thread Andy Shevchenko
On Sunday, December 27, 2020, Heinrich Schuchardt wrote: > If no GPIO controller is found, the return value should not depend on a > random value on the stack. Initialize variable ret. > > The problem was indicated by cppcheck. > > Signed-off-by: Heinrich Schuchardt > --- >

[PATCH 1/1] pinctrl: mediatek: correct error handling

2020-12-27 Thread Heinrich Schuchardt
If no GPIO controller is found, the return value should not depend on a random value on the stack. Initialize variable ret. The problem was indicated by cppcheck. Signed-off-by: Heinrich Schuchardt --- drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 2 +- 1 file changed, 1 insertion(+), 1