[PATCH 1/1] spl: boot always fail on CONFIG_SHOW_ERRORS=y

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Fri Jul 21 17:32:20 CEST 2023


Commit 7d84fbb57312 ("spl: Provide more information on boot failure") left
debug code to let boot_from_devices() always fail if CONFIG_SHOW_ERRORS=y.

Remove the debug code.

Fixes: 7d84fbb57312 ("spl: Provide more information on boot failure")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
 common/spl/spl.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/common/spl/spl.c b/common/spl/spl.c
index d74acec10b..6305b96b69 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -692,8 +692,6 @@ static int boot_from_devices(struct spl_image_info *spl_image,
 		struct spl_image_loader *loader;
 		int bootdev = spl_boot_list[i];
 
-		if (CONFIG_IS_ENABLED(SHOW_ERRORS))
-			ret = -ENXIO;
 		for (loader = drv; loader != drv + n_ents; loader++) {
 			if (bootdev != loader->boot_device)
 				continue;
-- 
2.40.1



More information about the U-Boot mailing list