olsr: Fix clang-tidy readability-simplify-boolean-expr warning
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user