Skip to content

Commit d1f7af4

Browse files
Light Hsiehlinusw
authored andcommitted
pinctrl: mediatek: remove shadow variable declaration
Remove shadow declaration of variable 'pullup' in mtk_pinconf_get() Signed-off-by: Light Hsieh <[email protected]> Reviewed-by: Stanley Chu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 8f3d9f3 commit d1f7af4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/pinctrl/mediatek/pinctrl-paris.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,6 @@ static int mtk_pinconf_get(struct pinctrl_dev *pctldev,
164164
case MTK_PIN_CONFIG_PU_ADV:
165165
case MTK_PIN_CONFIG_PD_ADV:
166166
if (hw->soc->adv_pull_get) {
167-
bool pullup;
168-
169167
pullup = param == MTK_PIN_CONFIG_PU_ADV;
170168
err = hw->soc->adv_pull_get(hw, desc, pullup, &ret);
171169
} else

0 commit comments

Comments
 (0)