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: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20221108191309.3908415-1-biju.das.jz@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
This commit is contained in:
Biju Das 2022-11-08 19:13:09 +00:00 committed by Geert Uytterhoeven
parent d871ea8591
commit 41a87e789c

View File

@ -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;
}