mirror of
https://github.com/espressif/openthread.git
synced 2026-08-19 08:59:52 +00:00
[mle] change InformPreviousParent() to return void (#4941)
This commit is contained in:
@@ -807,7 +807,7 @@ void Mle::SetStateChild(uint16_t aRloc16)
|
||||
#endif
|
||||
|
||||
#if OPENTHREAD_CONFIG_MLE_INFORM_PREVIOUS_PARENT_ON_REATTACH
|
||||
IgnoreError(InformPreviousParent());
|
||||
InformPreviousParent();
|
||||
mPreviousParentRloc = mParent.GetRloc16();
|
||||
#endif
|
||||
}
|
||||
@@ -4052,7 +4052,7 @@ otError Mle::CheckReachability(uint16_t aMeshDest, Ip6::Header &aIp6Header)
|
||||
}
|
||||
|
||||
#if OPENTHREAD_CONFIG_MLE_INFORM_PREVIOUS_PARENT_ON_REATTACH
|
||||
otError Mle::InformPreviousParent(void)
|
||||
void Mle::InformPreviousParent(void)
|
||||
{
|
||||
otError error = OT_ERROR_NONE;
|
||||
Message * message = NULL;
|
||||
@@ -4085,8 +4085,6 @@ exit:
|
||||
message->Free();
|
||||
}
|
||||
}
|
||||
|
||||
return error;
|
||||
}
|
||||
#endif // OPENTHREAD_CONFIG_MLE_INFORM_PREVIOUS_PARENT_ON_REATTACH
|
||||
|
||||
|
||||
@@ -1758,7 +1758,7 @@ private:
|
||||
#endif
|
||||
|
||||
#if OPENTHREAD_CONFIG_MLE_INFORM_PREVIOUS_PARENT_ON_REATTACH
|
||||
otError InformPreviousParent(void);
|
||||
void InformPreviousParent(void);
|
||||
#endif
|
||||
|
||||
#if OPENTHREAD_CONFIG_PARENT_SEARCH_ENABLE
|
||||
|
||||
Reference in New Issue
Block a user