]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
lmb: add missing fallthrough in lmb_alloc_mem()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 8 Jul 2025 12:12:51 +0000 (14:12 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 9 Jul 2025 16:39:37 +0000 (10:39 -0600)
Add fallthrough to clarify the intent.

Addresses-Coverity-ID: CID 569481: Control flow issues (MISSING_BREAK)
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Acked-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/lmb.c

index 45b26512a5b62712dbcf2b9359984cfd9e4d72f8..e5a0677e3f9d26130b1d661ea572466c928bad2a 100644 (file)
--- a/lib/lmb.c
+++ b/lib/lmb.c
@@ -762,6 +762,7 @@ int lmb_alloc_mem(enum lmb_mem_type type, u64 align, phys_addr_t *addr,
        switch (type) {
        case LMB_MEM_ALLOC_ANY:
                *addr = LMB_ALLOC_ANYWHERE;
+               fallthrough;
        case LMB_MEM_ALLOC_MAX:
                ret = _lmb_alloc_base(size, align, addr, flags);
                break;