[mle] change InformPreviousParent() to return void (#4941)

This commit is contained in:
Jonathan Hui
2020-05-11 12:44:54 -07:00
parent 40f4d20c9d
commit 3f299d3701
2 changed files with 3 additions and 5 deletions
+2 -4
View File
@@ -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
+1 -1
View File
@@ -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