mirror of
https://github.com/espressif/openthread.git
synced 2026-09-12 20:20:04 +00:00
[clang-tidy] add readability-redundant-control-flow (#8365)
This commit is contained in:
@@ -144,6 +144,7 @@ readability-avoid-const-params-in-decls,\
|
|||||||
readability-else-after-return,\
|
readability-else-after-return,\
|
||||||
readability-inconsistent-declaration-parameter-name,\
|
readability-inconsistent-declaration-parameter-name,\
|
||||||
readability-make-member-function-const,\
|
readability-make-member-function-const,\
|
||||||
|
readability-redundant-control-flow,\
|
||||||
readability-redundant-member-init,\
|
readability-redundant-member-init,\
|
||||||
readability-simplify-boolean-expr,\
|
readability-simplify-boolean-expr,\
|
||||||
readability-static-accessed-through-instance,\
|
readability-static-accessed-through-instance,\
|
||||||
|
|||||||
@@ -767,8 +767,6 @@ void DuaManager::UpdateChildDomainUnicastAddress(const Child &aChild, Mle::Child
|
|||||||
mChildDuaMask.Set(childIndex, true);
|
mChildDuaMask.Set(childIndex, true);
|
||||||
mChildDuaRegisteredMask.Set(childIndex, false);
|
mChildDuaRegisteredMask.Set(childIndex, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
#endif // OPENTHREAD_FTD && OPENTHREAD_CONFIG_TMF_PROXY_DUA_ENABLE
|
#endif // OPENTHREAD_FTD && OPENTHREAD_CONFIG_TMF_PROXY_DUA_ENABLE
|
||||||
|
|
||||||
|
|||||||
@@ -499,7 +499,6 @@ void LinkMetrics::HandleReport(const Message & aMessage,
|
|||||||
|
|
||||||
exit:
|
exit:
|
||||||
LogDebg("HandleReport, error:%s", ErrorToString(error));
|
LogDebg("HandleReport, error:%s", ErrorToString(error));
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Error LinkMetrics::HandleLinkProbe(const Message &aMessage, uint8_t &aSeriesId)
|
Error LinkMetrics::HandleLinkProbe(const Message &aMessage, uint8_t &aSeriesId)
|
||||||
|
|||||||
@@ -163,7 +163,6 @@ exit:
|
|||||||
{
|
{
|
||||||
LogDebg("Received diagnostic get response, error = %s", ErrorToString(aResult));
|
LogDebg("Received diagnostic get response, error = %s", ErrorToString(aResult));
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
|
|||||||
Reference in New Issue
Block a user