git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a517081
)
lmb: add missing fallthrough in lmb_alloc_mem()
author
Heinrich Schuchardt
<heinrich.schuchardt@canonical.com>
Tue, 8 Jul 2025 12:12:51 +0000
(14:12 +0200)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/lib/lmb.c
b/lib/lmb.c
index
45b2651
..
e5a0677
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;