Commit 0fd0f79a authored by Qianfeng Rong's avatar Qianfeng Rong Committed by Linus Walleij
Browse files

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: default avatarQianfeng Rong <rongqianfeng@vivo.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent decd50c1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);