[cli] do not update aError which is not read (#7365)

This commit avoid setting aError which is not read.
This commit is contained in:
Yakun Xu
2022-01-27 10:35:08 -08:00
committed by GitHub
parent d71742049f
commit 019e5ab4fa
+1 -1
View File
@@ -4712,7 +4712,7 @@ void Interpreter::HandleDiagnosticGetResponse(otError aError,
OutputLine("");
// Output Network Diagnostic TLV values in standard YAML format.
while ((aError = otThreadGetNextDiagnosticTlv(aMessage, &iterator, &diagTlv)) == OT_ERROR_NONE)
while (otThreadGetNextDiagnosticTlv(aMessage, &iterator, &diagTlv) == OT_ERROR_NONE)
{
switch (diagTlv.mType)
{