Skip to content

Commit 760ccef

Browse files
committed
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 <[email protected]> [1] https://www.spinics.net/lists/dri-devel/msg323803.html Reported-by: kernel test robot <[email protected]> Signed-off-by: Inki Dae <[email protected]>
1 parent 28b0d54 commit 760ccef

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

drivers/gpu/drm/exynos/exynos_drm_dsi.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,7 @@ static int exynos_dsi_register_te_irq(struct exynos_dsi *dsi,
13381338
if (IS_ERR(dsi->te_gpio)) {
13391339
dev_err(dsi->dev, "gpio request failed with %ld\n",
13401340
PTR_ERR(dsi->te_gpio));
1341-
goto out;
1341+
return PTR_ERR(dsi->te_gpio);
13421342
}
13431343

13441344
te_gpio_irq = gpiod_to_irq(dsi->te_gpio);
@@ -1348,11 +1348,10 @@ static int exynos_dsi_register_te_irq(struct exynos_dsi *dsi,
13481348
if (ret) {
13491349
dev_err(dsi->dev, "request interrupt failed with %d\n", ret);
13501350
gpiod_put(dsi->te_gpio);
1351-
goto out;
1351+
return ret;
13521352
}
13531353

1354-
out:
1355-
return ret;
1354+
return 0;
13561355
}
13571356

13581357
static void exynos_dsi_unregister_te_irq(struct exynos_dsi *dsi)

0 commit comments

Comments
 (0)