mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 10:04:12 +08:00
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:
parent
d871ea8591
commit
41a87e789c
@ -435,7 +435,6 @@ 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);
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user