# 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 
- List: linux-gpio
- Page: https://ratatoskr.run/linux-gpio/2021/12/8513914
- Thread: https://ratatoskr.run/linux-mediatek/2021/11/8513897/t.md

```text
On Sat, Nov 27, 2021 at 3:09 PM Dan Carpenter [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
```
