[PATCH 1/2] video: tegra: Remove unreachable code
Andrew Goodbody
andrew.goodbody at linaro.org
Wed Oct 1 13:55:36 CEST 2025
The goto immediately after a return is unreachable. Remove it and its
target label as redundant.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
---
drivers/video/tegra/tegra124/dp.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/video/tegra/tegra124/dp.c b/drivers/video/tegra/tegra124/dp.c
index b95b14da77d0f4d552c214e3a3f9f241f1cd4361..611bf2f81a62094922c198955d43ce1e57b61caf 100644
--- a/drivers/video/tegra/tegra124/dp.c
+++ b/drivers/video/tegra/tegra124/dp.c
@@ -1515,7 +1515,6 @@ int tegra_dp_enable(struct udevice *dev, int panel_bpp,
if (ret || retry >= DP_POWER_ON_MAX_TRIES) {
debug("dp: failed to power on panel (0x%x)\n", ret);
return -ENETUNREACH;
- goto error_enable;
}
/* Confirm DP plugging status */
@@ -1561,7 +1560,6 @@ int tegra_dp_enable(struct udevice *dev, int panel_bpp,
}
priv->enabled = true;
-error_enable:
return 0;
}
--
2.47.3
More information about the U-Boot
mailing list