pinctrl: ma35: Use int type to store negative error codes
authorQianfeng Rong <rongqianfeng@vivo.com>
Sun, 31 Aug 2025 08:49:57 +0000 (16:49 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 8 Sep 2025 12:21:06 +0000 (14:21 +0200)
Change the 'ret' variable in ma35_pinctrl_parse_functions() from u32 to
int, as it needs to store either negative error codes or zero returned
by ma35_pinctrl_parse_groups().

No effect on runtime.

Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/nuvoton/pinctrl-ma35.c

index 54652bf..cdad01d 100644 (file)
@@ -1038,7 +1038,8 @@ static int ma35_pinctrl_parse_functions(struct fwnode_handle *fwnode, struct ma3
        struct group_desc *grp;
        static u32 grp_index;
        const char **groups;
-       u32 ret, i = 0;
+       u32 i = 0;
+       int ret;
 
        dev_dbg(npctl->dev, "parse function(%d): %s\n", index, np->name);