[PATCH] bootdev: drop unnecessary assert on bootflow->bdev

Thomas Weißschuh thomas.weissschuh at linutronix.de
Mon Feb 12 10:35:12 CET 2024


Not all flows have a device and the function already contains logic to
handle this case.

Fixes: eccb25cd5922 ("bootstd: Allow the bootdev to be optional in bootflows")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 boot/bootdev-uclass.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/boot/bootdev-uclass.c b/boot/bootdev-uclass.c
index 35afb93c0e73..0fa6dad8b11b 100644
--- a/boot/bootdev-uclass.c
+++ b/boot/bootdev-uclass.c
@@ -39,7 +39,6 @@ int bootdev_add_bootflow(struct bootflow *bflow)
 	struct bootflow *new;
 	int ret;
 
-	assert(bflow->dev);
 	ret = bootstd_get_priv(&std);
 	if (ret)
 		return ret;

---
base-commit: e8f2404e093daf6cc3ac2b3233e3c6770d13e371
change-id: 20240209-bootdev-assert-11714f63d72d

Best regards,
-- 
Thomas Weißschuh <thomas.weissschuh at linutronix.de>



More information about the U-Boot mailing list