[style] use OT_FALL_THROUGH (#12226)

This commit replaces `// Fall through` with `OT_FALL_THROUGH` because
the former is not recognized by some compilers.
This commit is contained in:
Yakun Xu
2025-12-18 16:59:35 -08:00
committed by GitHub
parent cc48d3d752
commit bded2cc885
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1424,7 +1424,7 @@ void CoapBase::ProcessReceivedRequest(Message &aMessage, const Ip6::MessageInfo
{
case kErrorNone:
resource.HandleRequest(aMessage, aMessageInfo);
// Fall through
OT_FALL_THROUGH;
case kErrorBusy:
error = kErrorNone;
break;
+2 -2
View File
@@ -2065,7 +2065,7 @@ void Client::UpdateState(void)
mHostInfo.SetState(kToRefresh);
// Fall through
OT_FALL_THROUGH;
case kToAdd:
case kToRefresh:
@@ -2075,7 +2075,7 @@ void Client::UpdateState(void)
// for empty service list.
VerifyOrExit(!mServices.IsEmpty() && (mHostInfo.IsAutoAddressEnabled() || (mHostInfo.GetNumAddresses() > 0)));
// Fall through
OT_FALL_THROUGH;
case kToRemove:
shouldUpdate = true;
+1 -1
View File
@@ -483,7 +483,7 @@ template <> otError NcpBase::HandlePropertySet<SPINEL_PROP_BORDER_AGENT_EPHEMERA
break;
case OT_BORDER_AGENT_STATE_DISABLED:
error = OT_ERROR_NOT_CAPABLE;
// Fall through
OT_FALL_THROUGH;
case OT_BORDER_AGENT_STATE_STOPPED:
ExitNow();
}