Commit 41a87e78 authored by Biju Das's avatar Biju Das Committed by Geert Uytterhoeven

pinctrl: renesas: rzg2l: remove unnecessary check from rzg2l_dt_node_to_map()

This patch removes the unnecessary check from rzg2l_dt_node_to_map()
as the ret value is already negative.
Signed-off-by: default avatarBiju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20221108191309.3908415-1-biju.das.jz@bp.renesas.comSigned-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
parent d871ea85
......@@ -435,8 +435,7 @@ static int rzg2l_dt_node_to_map(struct pinctrl_dev *pctldev,
ret = -EINVAL;
done:
if (ret < 0)
rzg2l_dt_free_map(pctldev, *map, *num_maps);
rzg2l_dt_free_map(pctldev, *map, *num_maps);
return ret;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment