From: Thomas Weißschuh Date: Mon, 12 Feb 2024 09:35:12 +0000 (+0100) Subject: bootdev: drop unnecessary assert on bootflow->bdev X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/git-favicon.png?a=commitdiff_plain;h=8987c06f46dfd192f765c738b15119850054f18b;p=u-boot.git 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") Signed-off-by: Thomas Weißschuh --- diff --git a/boot/bootdev-uclass.c b/boot/bootdev-uclass.c index 35afb93c0e..0fa6dad8b1 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;