coredump.c: Delete the judgment of continue

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
wangmingrong1 2024-08-05 09:53:51 +08:00 committed by Xiang Xiao
parent 2beef702cc
commit 533c11eee2
1 changed files with 1 additions and 5 deletions

View File

@ -326,11 +326,7 @@ static void elf_emit_tcb_note(FAR struct elf_dumpinfo_s *cinfo,
{ {
for (i = 0; i < nitems(status.pr_regs); i++) for (i = 0; i < nitems(status.pr_regs); i++)
{ {
if (g_tcbinfo.reg_off.p[i] == UINT16_MAX) if (g_tcbinfo.reg_off.p[i] != UINT16_MAX)
{
continue;
}
else
{ {
status.pr_regs[i] = status.pr_regs[i] =
*(uintptr_t *)((uint8_t *)regs + g_tcbinfo.reg_off.p[i]); *(uintptr_t *)((uint8_t *)regs + g_tcbinfo.reg_off.p[i]);