Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: mediatek: simplify the return expression of mtk_pinconf_bias_disable_set_rev1()

Simplify the return expression.

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Link: https://lore.kernel.org/r/20201210135902.1548-1-zhengyongjun3@huawei.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Zheng Yongjun and committed by
Linus Walleij
a15f8596 01a9350b

+2 -8
+2 -8
drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c
··· 488 488 int mtk_pinconf_bias_disable_set_rev1(struct mtk_pinctrl *hw, 489 489 const struct mtk_pin_desc *desc) 490 490 { 491 - int err; 492 - 493 - err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_PULLEN, 494 - MTK_DISABLE); 495 - if (err) 496 - return err; 497 - 498 - return 0; 491 + return mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_PULLEN, 492 + MTK_DISABLE); 499 493 } 500 494 EXPORT_SYMBOL_GPL(mtk_pinconf_bias_disable_set_rev1); 501 495