]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
xyz-modem: Add missing fallthrough annotation
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 2 Nov 2024 10:41:12 +0000 (11:41 +0100)
committerTom 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

index 09f74a1f0c7786dd4f24bf4ca398455f2aa283f9..698a538a1489d1ef3c311ed2d11e3c0f2be0e408 100644 (file)
@@ -280,6 +280,7 @@ xyzModem_get_hdr (void)
            {
            case SOH:
              xyz.total_SOH++;
+             fallthrough;
            case STX:
              if (c == STX)
                xyz.total_STX++;