olsr: Fix clang-tidy readability-simplify-boolean-expr warning

This commit is contained in:
Eduardo Almeida
2023-06-01 20:05:11 +01:00
parent dc2e292ff6
commit 4dbcfcf9fb

View File

@@ -762,16 +762,8 @@ RoutingProtocol::MprComputation()
{
if (neigh->neighborMainAddr == twoHopNeigh->neighborMainAddr)
{
if (neigh->willingness == Willingness::NEVER)
{
ok = false;
break;
}
else
{
ok = true;
break;
}
ok = (neigh->willingness != Willingness::NEVER);
break;
}
}
if (!ok)