[PATCH] pinctrl: mediatek: add a check for error in mtk_pinconf_bias_get_rsel()

Linus Walleij linus.walleij at linaro.org
Wed Dec 1 17:33:59 PST 2021


On Sat, Nov 27, 2021 at 3:09 PM Dan Carpenter <dan.carpenter at oracle.com> wrote:

> All the other mtk_hw_get_value() calls have a check for "if (err)" so
> we can add one here as well.  This silences a Smatch warning:
>
>     drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c:819 mtk_pinconf_bias_get_rsel()
>     error: uninitialized symbol 'pd'.
>
> Fixes: fb34a9ae383a ("pinctrl: mediatek: support rsel feature")
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>

Patch applied.

Yours,
Linus Walleij



More information about the Linux-mediatek mailing list