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

Configure Feed

Select the types of activity you want to include in your feed.

pinctrl: ma35: Use int type to store negative error codes

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>

authored by

Qianfeng Rong and committed by
Linus Walleij
0fd0f79a decd50c1

+2 -1
+2 -1
drivers/pinctrl/nuvoton/pinctrl-ma35.c
··· 1038 1038 struct group_desc *grp; 1039 1039 static u32 grp_index; 1040 1040 const char **groups; 1041 - u32 ret, i = 0; 1041 + u32 i = 0; 1042 + int ret; 1042 1043 1043 1044 dev_dbg(npctl->dev, "parse function(%d): %s\n", index, np->name); 1044 1045