Commit 760cceff authored by Inki Dae's avatar Inki Dae

drm/exynos: drop the use of label from exynos_dsi_register_te_irq

Dropped the use of 'out' label from exynos_dsi_register_te_irq function
because the label isn't needed. This patch returns an error in each
error case directly not going to 'out' label.

With this patch build warning[1] is also fixed, which was reported by
kernel test robot <lkp@intel.com>

[1] https://www.spinics.net/lists/dri-devel/msg323803.htmlReported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 28b0d549
...@@ -1338,7 +1338,7 @@ static int exynos_dsi_register_te_irq(struct exynos_dsi *dsi, ...@@ -1338,7 +1338,7 @@ static int exynos_dsi_register_te_irq(struct exynos_dsi *dsi,
if (IS_ERR(dsi->te_gpio)) { if (IS_ERR(dsi->te_gpio)) {
dev_err(dsi->dev, "gpio request failed with %ld\n", dev_err(dsi->dev, "gpio request failed with %ld\n",
PTR_ERR(dsi->te_gpio)); PTR_ERR(dsi->te_gpio));
goto out; return PTR_ERR(dsi->te_gpio);
} }
te_gpio_irq = gpiod_to_irq(dsi->te_gpio); te_gpio_irq = gpiod_to_irq(dsi->te_gpio);
...@@ -1348,11 +1348,10 @@ static int exynos_dsi_register_te_irq(struct exynos_dsi *dsi, ...@@ -1348,11 +1348,10 @@ static int exynos_dsi_register_te_irq(struct exynos_dsi *dsi,
if (ret) { if (ret) {
dev_err(dsi->dev, "request interrupt failed with %d\n", ret); dev_err(dsi->dev, "request interrupt failed with %d\n", ret);
gpiod_put(dsi->te_gpio); gpiod_put(dsi->te_gpio);
goto out; return ret;
} }
out: return 0;
return ret;
} }
static void exynos_dsi_unregister_te_irq(struct exynos_dsi *dsi) static void exynos_dsi_unregister_te_irq(struct exynos_dsi *dsi)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment