Skip to content

Commit 9f062fc

Browse files
qianfengronggeertu
authored andcommitted
pinctrl: renesas: Use int type to store negative error codes
Change the 'ret' variable in sh_pfc_pinconf_group_set() from unsigned int to int, as it needs to store either negative error codes or zero returned by sh_pfc_pinconf_set(). No effect on runtime. Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com> Fixes: d0593c3 ("pinctrl: sh-pfc: Propagate errors on group config") Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/20250831084958.431913-4-rongqianfeng@vivo.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 837afa5 commit 9f062fc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/pinctrl/renesas/pinctrl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,8 @@ static int sh_pfc_pinconf_group_set(struct pinctrl_dev *pctldev, unsigned group,
726726
struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev);
727727
const unsigned int *pins;
728728
unsigned int num_pins;
729-
unsigned int i, ret;
729+
unsigned int i;
730+
int ret;
730731

731732
pins = pmx->pfc->info->groups[group].pins;
732733
num_pins = pmx->pfc->info->groups[group].nr_pins;

0 commit comments

Comments
 (0)