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

From
Linus Walleij <hidden>
Date
2021-12-02 01:34:19
Also in
kernel-janitors, linux-gpio
Reply to
Dan Carpenter, 2021-11-27
On Sat, Nov 27, 2021 at 3:09 PM Dan Carpenter [off-list ref] 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 <redacted>
Patch applied.

Yours,
Linus Walleij

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Thread (2 messages) 2 messages, 2 authors, last reply 2021-12-02
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help