diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2020-10-28 16:16:30 +0100 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2020-11-13 15:37:41 +0100 |
commit | b5bd0becfd42e6d007ad559c9068b80ef3ff84b8 (patch) | |
tree | dfcb75c41550f2506be5189e1dd345fc342e56f3 /drivers/pinctrl | |
parent | 8d3b2e3d5b1b27054c62a61bc1191131533166e5 (diff) | |
download | linux-b5bd0becfd42e6d007ad559c9068b80ef3ff84b8.tar.gz linux-b5bd0becfd42e6d007ad559c9068b80ef3ff84b8.tar.bz2 linux-b5bd0becfd42e6d007ad559c9068b80ef3ff84b8.zip |
pinctrl: renesas: Remove superfluous goto in sh_pfc_gpio_set_direction()
Commit b13431ed6eab808a ("pinctrl: sh-pfc: Remove incomplete flag
"cfg->type"") removed the last statement in between the goto and the
label. Hence remove both.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20201028151637.1734130-2-geert+renesas@glider.be
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/renesas/pinctrl.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/pinctrl/renesas/pinctrl.c b/drivers/pinctrl/renesas/pinctrl.c index 212a4a9c3a8f..f8d5fae66e86 100644 --- a/drivers/pinctrl/renesas/pinctrl.c +++ b/drivers/pinctrl/renesas/pinctrl.c @@ -460,12 +460,7 @@ static int sh_pfc_gpio_set_direction(struct pinctrl_dev *pctldev, } spin_lock_irqsave(&pfc->lock, flags); - ret = sh_pfc_config_mux(pfc, pin->enum_id, new_type); - if (ret < 0) - goto done; - -done: spin_unlock_irqrestore(&pfc->lock, flags); return ret; } |