]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
lmb: Remove unreachable code
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Mon, 14 Jul 2025 16:40:47 +0000 (17:40 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 22 Jul 2025 17:29:33 +0000 (11:29 -0600)
Code after a break is unreachable so remove it.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
lib/lmb.c

index e3a1761e6d1ee1a0d5bb26f23d5ec5faf0a4d47f..e2d9fe86c14e05c5dffa21ad54d088ecd5c11c73 100644 (file)
--- a/lib/lmb.c
+++ b/lib/lmb.c
@@ -215,8 +215,6 @@ static long lmb_add_region_flags(struct alist *lmb_rgn_lst, phys_addr_t base,
 
                        coalesced++;
                        break;
-
-                       return -1;
                }
        }