diff options
| author | 2021-11-27 17:08:36 +0300 | |
|---|---|---|
| committer | 2021-12-02 02:33:33 +0100 | |
| commit | 9f9d17c228c89e38ed612500126daf626270be9a (patch) | |
| tree | a466920de5354cffa2ab6a30a3d8ef7d1d96d448 /include/linux/phy/git:/ssh:/git@git.zx2c4.com | |
| parent | pinctrl: mediatek: uninitialized variable in mtk_pctrl_show_one_pin() (diff) | |
| download | linux-dev-9f9d17c228c89e38ed612500126daf626270be9a.tar.xz linux-dev-9f9d17c228c89e38ed612500126daf626270be9a.zip | |
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>
Diffstat (limited to 'include/linux/phy/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
