[mesh-forwarder] change GetForwardFramePriority() to return void (#4941)

This commit is contained in:
Jonathan Hui
2020-05-11 12:44:54 -07:00
parent 19ac977b08
commit e55906c5eb
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -426,7 +426,7 @@ private:
const Mac::Address &aMacDest,
uint8_t & aPriority);
otError GetFragmentPriority(Lowpan::FragmentHeader &aFragmentHeader, uint16_t aSrcRloc16, uint8_t &aPriority);
otError GetForwardFramePriority(const uint8_t * aFrame,
void GetForwardFramePriority(const uint8_t * aFrame,
uint16_t aFrameLength,
const Mac::Address &aMeshSource,
const Mac::Address &aMeshDest,
+7 -7
View File
@@ -658,7 +658,7 @@ void MeshForwarder::HandleMesh(uint8_t * aFrame,
meshHeader.DecrementHopsLeft();
IgnoreError(GetForwardFramePriority(aFrame, aFrameLength, meshSource, meshDest, priority));
GetForwardFramePriority(aFrame, aFrameLength, meshSource, meshDest, priority);
message = Get<MessagePool>().New(Message::kType6lowpan, priority);
VerifyOrExit(message != NULL, error = OT_ERROR_NO_BUFS);
@@ -842,11 +842,11 @@ exit:
return error;
}
otError MeshForwarder::GetForwardFramePriority(const uint8_t * aFrame,
uint16_t aFrameLength,
const Mac::Address &aMeshSource,
const Mac::Address &aMeshDest,
uint8_t & aPriority)
void MeshForwarder::GetForwardFramePriority(const uint8_t * aFrame,
uint16_t aFrameLength,
const Mac::Address &aMeshSource,
const Mac::Address &aMeshDest,
uint8_t & aPriority)
{
otError error = OT_ERROR_NONE;
bool isFragment = false;
@@ -881,7 +881,7 @@ exit:
UpdateFragmentPriority(fragmentHeader, aFrameLength, aMeshSource.GetShort(), aPriority);
}
return error;
return;
}
otError MeshForwarder::GetDestinationRlocByServiceAloc(uint16_t aServiceAloc, uint16_t &aMeshDest)