mirror of
https://github.com/espressif/openthread.git
synced 2026-07-28 14:47:46 +00:00
Use return instaed of {} after labels. (#1443)
This commit is contained in:
+1
-1
@@ -93,7 +93,7 @@ void Udp::HandleUdpReceive(otMessage *aMessage, const otMessageInfo *aMessageInf
|
||||
mInterpreter->ProcessLine(buf, payloadLength, *this);
|
||||
|
||||
exit:
|
||||
{}
|
||||
return;
|
||||
}
|
||||
|
||||
int Udp::Output(const char *aBuf, uint16_t aBufLength)
|
||||
|
||||
@@ -191,7 +191,7 @@ void Server::ProcessReceivedMessage(Message &aMessage, const Ip6::MessageInfo &a
|
||||
}
|
||||
|
||||
exit:
|
||||
{}
|
||||
return;
|
||||
}
|
||||
|
||||
ThreadError Server::SetPort(uint16_t aPort)
|
||||
|
||||
@@ -760,7 +760,7 @@ void Mac::ProcessTransmitSecurity(Frame &aFrame)
|
||||
aesCcm.Finalize(aFrame.GetFooter(), &tagLength);
|
||||
|
||||
exit:
|
||||
{}
|
||||
return;
|
||||
}
|
||||
|
||||
void Mac::HandleBeginTransmit(void)
|
||||
@@ -1106,7 +1106,7 @@ void Mac::SentFrame(ThreadError aError)
|
||||
}
|
||||
|
||||
exit:
|
||||
{}
|
||||
return;
|
||||
}
|
||||
|
||||
ThreadError Mac::ProcessReceiveSecurity(Frame &aFrame, const Address &aSrcAddr, Neighbor *aNeighbor)
|
||||
|
||||
@@ -115,7 +115,7 @@ void Blacklist::Remove(const ExtAddress &address)
|
||||
memset(entry, 0, sizeof(*entry));
|
||||
|
||||
exit:
|
||||
{}
|
||||
return;
|
||||
}
|
||||
|
||||
Blacklist::Entry *Blacklist::Find(const ExtAddress &address)
|
||||
|
||||
@@ -118,7 +118,7 @@ void Whitelist::Remove(const ExtAddress &address)
|
||||
memset(entry, 0, sizeof(*entry));
|
||||
|
||||
exit:
|
||||
{}
|
||||
return;
|
||||
}
|
||||
|
||||
Whitelist::Entry *Whitelist::Find(const ExtAddress &address)
|
||||
|
||||
@@ -1151,7 +1151,7 @@ void PendingDatasetBase::ApplyActiveDataset(const Timestamp &aTimestamp, Message
|
||||
ResetDelayTimer(kFlagNetworkUpdated);
|
||||
|
||||
exit:
|
||||
{}
|
||||
return;
|
||||
}
|
||||
|
||||
void PendingDatasetBase::HandleNetworkUpdate(uint8_t &aFlags)
|
||||
|
||||
@@ -219,7 +219,7 @@ void Dhcp6Client::AddIdentityAssociation(uint16_t aRloc16, otIp6Prefix &aIp6Pref
|
||||
}
|
||||
|
||||
exit:
|
||||
{}
|
||||
return;
|
||||
}
|
||||
|
||||
void Dhcp6Client::RemoveIdentityAssociation(uint16_t aRloc16, otIp6Prefix &aIp6Prefix)
|
||||
@@ -260,7 +260,7 @@ void Dhcp6Client::RemoveIdentityAssociation(uint16_t aRloc16, otIp6Prefix &aIp6P
|
||||
}
|
||||
|
||||
exit:
|
||||
{}
|
||||
return;
|
||||
}
|
||||
|
||||
ThreadError Dhcp6Client::Start(void)
|
||||
@@ -534,7 +534,7 @@ void Dhcp6Client::HandleUdpReceive(Message &aMessage, const Ip6::MessageInfo &aM
|
||||
}
|
||||
|
||||
exit:
|
||||
{}
|
||||
return;
|
||||
}
|
||||
|
||||
void Dhcp6Client::ProcessReply(Message &aMessage)
|
||||
|
||||
@@ -267,7 +267,7 @@ void Dhcp6Server::HandleUdpReceive(Message &aMessage, const Ip6::MessageInfo &aM
|
||||
ProcessSolicit(aMessage, dst, header.GetTransactionId());
|
||||
|
||||
exit:
|
||||
{}
|
||||
return;
|
||||
}
|
||||
|
||||
void Dhcp6Server::ProcessSolicit(Message &aMessage, otIp6Address &aDst, uint8_t *aTransactionId)
|
||||
@@ -301,7 +301,7 @@ void Dhcp6Server::ProcessSolicit(Message &aMessage, otIp6Address &aDst, uint8_t
|
||||
SuccessOrExit(SendReply(aDst, aTransactionId, clientIdentifier, iana));
|
||||
|
||||
exit:
|
||||
{}
|
||||
return;
|
||||
}
|
||||
|
||||
uint16_t Dhcp6Server::FindOption(Message &aMessage, uint16_t aOffset, uint16_t aLength, Code aCode)
|
||||
|
||||
@@ -486,7 +486,7 @@ void AddressResolver::HandleAddressError(Coap::Header &aHeader, Message &aMessag
|
||||
}
|
||||
|
||||
exit:
|
||||
{}
|
||||
return;
|
||||
}
|
||||
|
||||
void AddressResolver::HandleAddressQuery(void *aContext, otCoapHeader *aHeader, otMessage *aMessage,
|
||||
@@ -553,7 +553,7 @@ void AddressResolver::HandleAddressQuery(Coap::Header &aHeader, Message &aMessag
|
||||
}
|
||||
|
||||
exit:
|
||||
{}
|
||||
return;
|
||||
}
|
||||
|
||||
void AddressResolver::SendAddressQueryResponse(const ThreadTargetTlv &aTargetTlv,
|
||||
|
||||
@@ -2193,7 +2193,7 @@ void MeshForwarder::HandleDataRequest(const Mac::Address &aMacSource, const Thre
|
||||
mScheduleTransmissionTask.Post();
|
||||
|
||||
exit:
|
||||
{}
|
||||
return;
|
||||
}
|
||||
|
||||
void MeshForwarder::HandleDataPollTimeout(void *aContext)
|
||||
|
||||
@@ -1250,7 +1250,7 @@ void Mle::HandleNetifStateChanged(uint32_t aFlags)
|
||||
}
|
||||
|
||||
exit:
|
||||
{}
|
||||
return;
|
||||
}
|
||||
|
||||
void Mle::HandleParentRequestTimer(void *aContext)
|
||||
@@ -2209,7 +2209,7 @@ void Mle::HandleUdpReceive(Message &aMessage, const Ip6::MessageInfo &aMessageIn
|
||||
}
|
||||
|
||||
exit:
|
||||
{}
|
||||
return;
|
||||
}
|
||||
|
||||
ThreadError Mle::HandleAdvertisement(const Message &aMessage, const Ip6::MessageInfo &aMessageInfo)
|
||||
|
||||
@@ -1863,7 +1863,7 @@ void MleRouter::HandleStateUpdateTimer(void)
|
||||
mStateUpdateTimer.Start(kStateUpdatePeriod);
|
||||
|
||||
exit:
|
||||
{}
|
||||
return;
|
||||
}
|
||||
|
||||
void MleRouter::HandleChildUpdateRequestTimer(void *aContext)
|
||||
@@ -1893,7 +1893,7 @@ void MleRouter::HandleChildUpdateRequestTimer(void)
|
||||
}
|
||||
|
||||
exit:
|
||||
{}
|
||||
return;
|
||||
}
|
||||
|
||||
ThreadError MleRouter::SendParentResponse(Child *aChild, const ChallengeTlv &challenge, bool aRoutersOnlyRequest)
|
||||
@@ -3847,7 +3847,7 @@ void MleRouter::HandleAddressSolicitResponse(Coap::Header *aHeader, Message *aMe
|
||||
}
|
||||
|
||||
exit:
|
||||
{}
|
||||
return;
|
||||
}
|
||||
|
||||
void MleRouter::HandleAddressSolicit(void *aContext, otCoapHeader *aHeader, otMessage *aMessage,
|
||||
@@ -4053,7 +4053,7 @@ void MleRouter::HandleAddressRelease(Coap::Header &aHeader, Message &aMessage,
|
||||
otLogInfoMle(GetInstance(), "Sent address release response");
|
||||
|
||||
exit:
|
||||
{}
|
||||
return;
|
||||
}
|
||||
|
||||
void MleRouter::FillConnectivityTlv(ConnectivityTlv &aTlv)
|
||||
|
||||
Reference in New Issue
Block a user