projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f66c0e
)
xyz-modem: Add missing fallthrough annotation
author
Heinrich Schuchardt
<heinrich.schuchardt@canonical.com>
Sat, 2 Nov 2024 10:41:12 +0000
(11:41 +0100)
committer
Tom Rini
<trini@konsulko.com>
Fri, 15 Nov 2024 00:14:05 +0000
(18:14 -0600)
Falltroughs in switch statements should be explicit.
Addresses-Coverity-ID: 131162 Missing break in switch
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
common/xyzModem.c
patch
|
blob
|
history
diff --git
a/common/xyzModem.c
b/common/xyzModem.c
index 09f74a1f0c7786dd4f24bf4ca398455f2aa283f9..698a538a1489d1ef3c311ed2d11e3c0f2be0e408 100644
(file)
--- a/
common/xyzModem.c
+++ b/
common/xyzModem.c
@@
-280,6
+280,7
@@
xyzModem_get_hdr (void)
{
case SOH:
xyz.total_SOH++;
+ fallthrough;
case STX:
if (c == STX)
xyz.total_STX++;