[PATCH 1/1] xyz-modem: Add missing fallthrough annotation

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Sat Nov 2 11:41:12 CET 2024


Falltroughs in switch statements should be explicit.

Addresses-Coverity-ID: 131162 Missing break in switch
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
 common/xyzModem.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/xyzModem.c b/common/xyzModem.c
index 09f74a1f0c7..698a538a148 100644
--- 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++;
-- 
2.45.2



More information about the U-Boot mailing list