Skip to contentSkip to conversation

bootdev: drop unnecessary assert on bootflow->bdev

PATCH In review Thomas Weißschuh 2 participants 2 messages Feb 12, 2024 – Mar 4, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bootdev: drop unnecessary assert on bootflow->bdev

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")
---
 boot/bootdev-uclass.c | 1 -
 1 file changed, 1 deletion(-)
boot/bootdev-uclass.c +0 -1
index 35afb93c0e73..0fa6dad8b11b 100644
@@ -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,

Signature · 1 line
Thomas Weißschuh <[email protected]>
#1 lore raw
Quoted 5 lines · Thomas Weißschuh

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")

Applied to u-boot/next, thanks!

Signature · 1 line
Tom