mirror of
https://github.com/espressif/openthread.git
synced 2026-07-31 08:07:47 +00:00
[mle] remove redundant call to RouterTable::GetRouter (#4465)
This commit is contained in:
@@ -3447,7 +3447,7 @@ uint8_t MleRouter::GetCost(uint16_t aRloc16)
|
||||
|
||||
VerifyOrExit(router != NULL && mRouterTable.GetRouter(router->GetNextHop()) != NULL);
|
||||
|
||||
routeCost = GetRouteCost(aRloc16) + GetLinkCost(mRouterTable.GetRouter(routerId)->GetNextHop());
|
||||
routeCost = GetRouteCost(aRloc16) + GetLinkCost(router->GetNextHop());
|
||||
|
||||
if (cost > routeCost)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user