]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
bootdev: drop unnecessary assert on bootflow->bdev
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Mon, 12 Feb 2024 09:35:12 +0000 (10:35 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 2 Mar 2024 17:26:19 +0000 (12:26 -0500)
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@linutronix.de>
boot/bootdev-uclass.c

index 35afb93c0e736a040d1e62ec19cb5c5c04aa8374..0fa6dad8b11bf65f00d87fe25f4647b425170b13 100644 (file)
@@ -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;