mirror of
https://github.com/espressif/openthread.git
synced 2026-09-05 00:30:07 +00:00
[network-data] change RemoveCommissioningData() to return void (#4941)
This commit is contained in:
@@ -455,7 +455,7 @@ otError LeaderBase::SetCommissioningData(const uint8_t *aValue, uint8_t aValueLe
|
||||
otError error = OT_ERROR_NONE;
|
||||
CommissioningDataTlv *commissioningDataTlv;
|
||||
|
||||
IgnoreError(RemoveCommissioningData());
|
||||
RemoveCommissioningData();
|
||||
|
||||
if (aValueLength > 0)
|
||||
{
|
||||
@@ -517,16 +517,15 @@ exit:
|
||||
return rval;
|
||||
}
|
||||
|
||||
otError LeaderBase::RemoveCommissioningData(void)
|
||||
void LeaderBase::RemoveCommissioningData(void)
|
||||
{
|
||||
otError error = OT_ERROR_NONE;
|
||||
CommissioningDataTlv *tlv = GetCommissioningData();
|
||||
CommissioningDataTlv *tlv = GetCommissioningData();
|
||||
|
||||
VerifyOrExit(tlv != NULL, error = OT_ERROR_NOT_FOUND);
|
||||
VerifyOrExit(tlv != NULL, OT_NOOP);
|
||||
RemoveTlv(tlv);
|
||||
|
||||
exit:
|
||||
return error;
|
||||
return;
|
||||
}
|
||||
|
||||
} // namespace NetworkData
|
||||
|
||||
@@ -296,7 +296,7 @@ protected:
|
||||
private:
|
||||
const PrefixTlv *FindNextMatchingPrefix(const Ip6::Address &aAddress, const PrefixTlv *aPrevTlv) const;
|
||||
|
||||
otError RemoveCommissioningData(void);
|
||||
void RemoveCommissioningData(void);
|
||||
|
||||
otError ExternalRouteLookup(uint8_t aDomainId,
|
||||
const Ip6::Address &aDestination,
|
||||
|
||||
Reference in New Issue
Block a user