[mle] remove unnecessary usages of OT_UNUSED_VARIABLE() (#7411)

This commit is contained in:
Abtin Keshavarzian
2022-02-14 13:55:40 -08:00
committed by GitHub
parent a201e9d5d0
commit 49918c7f8e
2 changed files with 1 additions and 10 deletions
+1 -8
View File
@@ -295,7 +295,7 @@ void Mle::SetRole(DeviceRole aRole)
}
exit:
OT_UNUSED_VARIABLE(oldRole);
return;
}
void Mle::SetAttachState(AttachState aState)
@@ -2190,9 +2190,6 @@ Error Mle::SendDataRequest(const Ip6::Address &aDestination,
const uint8_t * aExtraTlvs,
uint8_t aExtraTlvsLength)
{
OT_UNUSED_VARIABLE(aExtraTlvs);
OT_UNUSED_VARIABLE(aExtraTlvsLength);
Error error = kErrorNone;
Message *message;
@@ -3632,8 +3629,6 @@ void Mle::HandleChildIdResponse(const Message & aMessage,
const Ip6::MessageInfo &aMessageInfo,
const Neighbor * aNeighbor)
{
OT_UNUSED_VARIABLE(aMessageInfo);
Error error = kErrorNone;
LeaderData leaderData;
uint16_t sourceAddress;
@@ -3997,8 +3992,6 @@ exit:
void Mle::HandleAnnounce(const Message &aMessage, const Ip6::MessageInfo &aMessageInfo)
{
OT_UNUSED_VARIABLE(aMessageInfo);
Error error = kErrorNone;
ChannelTlv channelTlv;
MeshCoP::Timestamp timestamp;
-2
View File
@@ -3707,8 +3707,6 @@ void MleRouter::HandleAddressSolicitResponse(Coap::Message * aMessage,
const Ip6::MessageInfo *aMessageInfo,
Error aResult)
{
OT_UNUSED_VARIABLE(aMessageInfo);
uint8_t status;
uint16_t rloc16;
ThreadRouterMaskTlv routerMaskTlv;