mirror of
https://github.com/espressif/openthread.git
synced 2026-08-31 22:39:54 +00:00
[mle] change RefreshStoredChildren() to return void (#4941)
This commit is contained in:
@@ -3687,7 +3687,7 @@ exit:
|
||||
// children info to ensure that the non-volatile settings remain
|
||||
// consistent with the child table.
|
||||
|
||||
IgnoreError(RefreshStoredChildren());
|
||||
RefreshStoredChildren();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3724,19 +3724,17 @@ otError MleRouter::StoreChild(const Child &aChild)
|
||||
return Get<Settings>().AddChildInfo(childInfo);
|
||||
}
|
||||
|
||||
otError MleRouter::RefreshStoredChildren(void)
|
||||
void MleRouter::RefreshStoredChildren(void)
|
||||
{
|
||||
otError error = OT_ERROR_NONE;
|
||||
|
||||
SuccessOrExit(error = Get<Settings>().DeleteChildInfo());
|
||||
SuccessOrExit(Get<Settings>().DeleteChildInfo());
|
||||
|
||||
for (ChildTable::Iterator iter(GetInstance(), Child::kInStateAnyExceptInvalid); !iter.IsDone(); iter++)
|
||||
{
|
||||
SuccessOrExit(error = StoreChild(*iter.GetChild()));
|
||||
SuccessOrExit(StoreChild(*iter.GetChild()));
|
||||
}
|
||||
|
||||
exit:
|
||||
return error;
|
||||
return;
|
||||
}
|
||||
|
||||
otError MleRouter::GetChildInfo(Child &aChild, otChildInfo &aChildInfo)
|
||||
|
||||
@@ -723,7 +723,7 @@ private:
|
||||
otError AppendPendingDataset(Message &aMessage);
|
||||
otError GetChildInfo(Child &aChild, otChildInfo &aChildInfo);
|
||||
void GetNeighborInfo(Neighbor &aNeighbor, otNeighborInfo &aNeighInfo);
|
||||
otError RefreshStoredChildren(void);
|
||||
void RefreshStoredChildren(void);
|
||||
void HandleDetachStart(void);
|
||||
void HandleChildStart(AttachMode aMode);
|
||||
void HandleLinkRequest(const Message &aMessage, const Ip6::MessageInfo &aMessageInfo, Neighbor *aNeighbor);
|
||||
|
||||
Reference in New Issue
Block a user