summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2024-12-19 11:29:01 -0700
committerTom Rini <[email protected]>2024-12-27 15:16:10 -0600
commit03b94635d8c6c913b83cb029c1f9d894f0fed072 (patch)
treef530764a90da13b1aa69abefcf73a8989dcb31e8
parent7a585b9d6a30e4122f9944b792f4da8ba5196d86 (diff)
spl: Drop a duplicate variable in boot_from_devices()
The variable 'ret' is defined twice, which is not intended. This may have been a local merge error. Signed-off-by: Simon Glass <[email protected]> Fixes: 2eefeb6d893 ("spl: Report a loader failure")
-rw-r--r--common/spl/spl.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c
index 702920bd2f7..ad31a2f8b6c 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -612,7 +612,6 @@ static int boot_from_devices(struct spl_image_info *spl_image,
for (i = 0; i < count && spl_boot_list[i] != BOOT_DEVICE_NONE; i++) {
struct spl_image_loader *loader;
int bootdev = spl_boot_list[i];
- int ret;
if (CONFIG_IS_ENABLED(SHOW_ERRORS))
ret = -ENXIO;