]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
video: tegra: Remove unreachable code
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Wed, 1 Oct 2025 11:55:36 +0000 (12:55 +0100)
committerSvyatoslav Ryhel <clamor95@gmail.com>
Tue, 28 Oct 2025 09:27:44 +0000 (11:27 +0200)
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@linaro.org>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Acked-by: Svyatoslav Ryhel <clamor95@gmail.com>
drivers/video/tegra/tegra124/dp.c

index b95b14da77d0f4d552c214e3a3f9f241f1cd4361..611bf2f81a62094922c198955d43ce1e57b61caf 100644 (file)
@@ -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;
 }