diff options
author | Biju Das <biju.das.jz@bp.renesas.com> | 2022-11-08 20:13:09 +0100 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2022-11-15 14:09:19 +0100 |
commit | 41a87e789c7c2cdeb302331043f866c0138f0413 (patch) | |
tree | 4af834ed2c4241dba3415f18e990798c2940c084 /drivers/pinctrl/renesas | |
parent | pinctrl: renesas: rzv2m: remove unnecessary check from rzv2m_dt_node_to_map() (diff) | |
download | linux-41a87e789c7c2cdeb302331043f866c0138f0413.tar.xz linux-41a87e789c7c2cdeb302331043f866c0138f0413.zip |
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>
Diffstat (limited to 'drivers/pinctrl/renesas')
-rw-r--r-- | drivers/pinctrl/renesas/pinctrl-rzg2l.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pinctrl/renesas/pinctrl-rzg2l.c b/drivers/pinctrl/renesas/pinctrl-rzg2l.c index a43824fd9505..4e79b2961232 100644 --- a/drivers/pinctrl/renesas/pinctrl-rzg2l.c +++ b/drivers/pinctrl/renesas/pinctrl-rzg2l.c @@ -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; } |