diff --git a/src/core/thread/mle.cpp b/src/core/thread/mle.cpp index 41da7ec14..04332ac9b 100644 --- a/src/core/thread/mle.cpp +++ b/src/core/thread/mle.cpp @@ -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 diff --git a/src/core/thread/mle.hpp b/src/core/thread/mle.hpp index 7b4c5b74f..0387a1e85 100644 --- a/src/core/thread/mle.hpp +++ b/src/core/thread/mle.hpp @@ -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