[PATCH] lmb: Remove unreachable code
Andrew Goodbody
andrew.goodbody at linaro.org
Mon Jul 14 18:40:47 CEST 2025
Code after a break is unreachable so remove it.
Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
---
lib/lmb.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/lib/lmb.c b/lib/lmb.c
index e5a0677e3f9..3d13dea726e 100644
--- a/lib/lmb.c
+++ b/lib/lmb.c
@@ -214,8 +214,6 @@ static long lmb_add_region_flags(struct alist *lmb_rgn_lst, phys_addr_t base,
coalesced++;
break;
-
- return -1;
}
}
---
base-commit: e80998a77b97fa52e9321a56e004d8adfd8125d7
change-id: 20250714-lmb_unreachable-dc6c296f0882
Best regards,
--
Andrew Goodbody <andrew.goodbody at linaro.org>
More information about the U-Boot
mailing list