[clang-tidy] add readability-redundant-control-flow (#8365)

This commit is contained in:
Jonathan Hui
2022-11-04 16:34:37 -07:00
committed by GitHub
parent 8e020b4018
commit ba826ffb2a
4 changed files with 1 additions and 4 deletions
+1
View File
@@ -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,\
-2
View File
@@ -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
-1
View File
@@ -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)
-1
View File
@@ -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 <>