]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: mediatek: add a check for error in mtk_pinconf_bias_get_rsel()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 27 Nov 2021 14:08:36 +0000 (17:08 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 2 Dec 2021 01:33:33 +0000 (02:33 +0100)
commit054938fae9b31989dd5bd899b799a3141487a2ea
treea466920de5354cffa2ab6a30a3d8ef7d1d96d448
parent8faec0390c78c7729211d15f63791bf1779136c0
pinctrl: mediatek: add a check for error in mtk_pinconf_bias_get_rsel()

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: 98ff931f2b1b ("pinctrl: mediatek: support rsel feature")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20211127140836.GB24002@kili
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c