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)
commit9f9d17c228c89e38ed612500126daf626270be9a
treea466920de5354cffa2ab6a30a3d8ef7d1d96d448
parent67bbbcb49b968a93251de7b23616d5aff5d3a726
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: fb34a9ae383a ("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