mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-23 13:56:20 +00:00
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:
parent
1f66c0e1f4
commit
e54ddc32cf
1 changed files with 1 additions and 0 deletions
|
@ -280,6 +280,7 @@ xyzModem_get_hdr (void)
|
||||||
{
|
{
|
||||||
case SOH:
|
case SOH:
|
||||||
xyz.total_SOH++;
|
xyz.total_SOH++;
|
||||||
|
fallthrough;
|
||||||
case STX:
|
case STX:
|
||||||
if (c == STX)
|
if (c == STX)
|
||||||
xyz.total_STX++;
|
xyz.total_STX++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue