pinctrl: mediatek: paris: handle mtk_hw_set_value() errors in mtk_pmx_set_mux()
authorKarina Yankevich <k.yankevich@omp.ru>
Fri, 22 Sep 2023 13:59:25 +0000 (16:59 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 27 Sep 2023 08:39:29 +0000 (10:39 +0200)
commit3d855c3f2e1373f40962ea4ab7b97c6a563b52bc
treea3cfb3e8c298993d40bb09a1efab95e9e5bf1700
parentcaaeb8c551123e26e86270c8dec99a78f1f6fe0f
pinctrl: mediatek: paris: handle mtk_hw_set_value() errors in mtk_pmx_set_mux()

mtk_pmx_set_mux() doesn't check the result of mtk_hw_set_value()
despite it may return negative error code. Propagate error code
to caller functions.

Found by Linux Verification Center (linuxtesting.org) with the Svace static
analysis tool.

Signed-off-by: Karina Yankevich <k.yankevich@omp.ru>
Link: https://lore.kernel.org/r/20230922135926.3653428-1-k.yankevich@omp.ru
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-paris.c