mirror of
https://github.com/espressif/openthread.git
synced 2026-09-24 01:47:41 +00:00
[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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user