Skip to content

Commit

Permalink
[mesh-diag] fix typo didPorcess -> didProcess (openthread#11126)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhui authored Jan 6, 2025
1 parent e4fb743 commit 90ced56
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/core/utils/mesh_diag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,27 +234,27 @@ Error MeshDiag::QueryRouterNeighborTable(uint16_t aRloc16, RouterNeighborTableCa

bool MeshDiag::HandleDiagnosticGetAnswer(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo)
{
bool didPorcess = false;
bool didProcess = false;

switch (mState)
{
case kStateQueryChildTable:
didPorcess = ProcessChildTableAnswer(aMessage, aMessageInfo);
didProcess = ProcessChildTableAnswer(aMessage, aMessageInfo);
break;

case kStateQueryChildrenIp6Addrs:
didPorcess = ProcessChildrenIp6AddrsAnswer(aMessage, aMessageInfo);
didProcess = ProcessChildrenIp6AddrsAnswer(aMessage, aMessageInfo);
break;

case kStateQueryRouterNeighborTable:
didPorcess = ProcessRouterNeighborTableAnswer(aMessage, aMessageInfo);
didProcess = ProcessRouterNeighborTableAnswer(aMessage, aMessageInfo);
break;

default:
break;
}

return didPorcess;
return didProcess;
}

Error MeshDiag::ProcessMessage(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo, uint16_t aSenderRloc16)
Expand Down Expand Up @@ -290,7 +290,7 @@ Error MeshDiag::ProcessMessage(Coap::Message &aMessage, const Ip6::MessageInfo &

bool MeshDiag::ProcessChildTableAnswer(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo)
{
bool didPorcess = false;
bool didProcess = false;
ChildTlv childTlv;
ChildEntry entry;
uint16_t offset;
Expand All @@ -302,7 +302,7 @@ bool MeshDiag::ProcessChildTableAnswer(Coap::Message &aMessage, const Ip6::Messa
SuccessOrExit(Tlv::FindTlv(aMessage, childTlv, offset));
VerifyOrExit(!childTlv.IsExtended());

didPorcess = true;
didProcess = true;

if (childTlv.GetLength() == 0)
{
Expand All @@ -327,12 +327,12 @@ bool MeshDiag::ProcessChildTableAnswer(Coap::Message &aMessage, const Ip6::Messa
}

exit:
return didPorcess;
return didProcess;
}

bool MeshDiag::ProcessRouterNeighborTableAnswer(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo)
{
bool didPorcess = false;
bool didProcess = false;
RouterNeighborTlv neighborTlv;
RouterNeighborEntry entry;
uint16_t offset;
Expand All @@ -344,7 +344,7 @@ bool MeshDiag::ProcessRouterNeighborTableAnswer(Coap::Message &aMessage, const I
SuccessOrExit(Tlv::FindTlv(aMessage, neighborTlv, offset));
VerifyOrExit(!neighborTlv.IsExtended());

didPorcess = true;
didProcess = true;

if (neighborTlv.GetLength() == 0)
{
Expand All @@ -368,12 +368,12 @@ bool MeshDiag::ProcessRouterNeighborTableAnswer(Coap::Message &aMessage, const I
}

exit:
return didPorcess;
return didProcess;
}

bool MeshDiag::ProcessChildrenIp6AddrsAnswer(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo)
{
bool didPorcess = false;
bool didProcess = false;
OffsetRange offsetRange;
ChildIp6AddressListTlvValue tlvValue;
Ip6AddrIterator ip6AddrIterator;
Expand All @@ -384,7 +384,7 @@ bool MeshDiag::ProcessChildrenIp6AddrsAnswer(Coap::Message &aMessage, const Ip6:
{
SuccessOrExit(Tlv::FindTlvValueOffsetRange(aMessage, ChildIp6AddressListTlv::kType, offsetRange));

didPorcess = true;
didProcess = true;

if (offsetRange.IsEmpty())
{
Expand Down Expand Up @@ -414,7 +414,7 @@ bool MeshDiag::ProcessChildrenIp6AddrsAnswer(Coap::Message &aMessage, const Ip6:
}

exit:
return didPorcess;
return didProcess;
}

void MeshDiag::Cancel(void)
Expand Down

0 comments on commit 90ced56

Please sign in to comment.