xyz-modem: Add missing fallthrough annotation

Falltroughs in switch statements should be explicit.

Addresses-Coverity-ID: 131162 Missing break in switch
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
Heinrich Schuchardt 2024-11-02 11:41:12 +01:00 committed by Tom Rini
parent 1f66c0e1f4
commit e54ddc32cf

View file

@ -280,6 +280,7 @@ xyzModem_get_hdr (void)
{
case SOH:
xyz.total_SOH++;
fallthrough;
case STX:
if (c == STX)
xyz.total_STX++;