pinctrl: renesas: rzv2m: remove unnecessary check from rzv2m_dt_node_to_map()
This patch removes the unnecessary check from rzv2m_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/20221108183223.3902097-1-biju.das.jz@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
This commit is contained in:
committed by
Geert Uytterhoeven
parent
9abf2313ad
commit
d871ea8591
@ -397,8 +397,7 @@ static int rzv2m_dt_node_to_map(struct pinctrl_dev *pctldev,
|
|||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
|
|
||||||
done:
|
done:
|
||||||
if (ret < 0)
|
rzv2m_dt_free_map(pctldev, *map, *num_maps);
|
||||||
rzv2m_dt_free_map(pctldev, *map, *num_maps);
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user