From 533c11eee2cb3dcf52caafc3b8bd8ddfccfc5f9d Mon Sep 17 00:00:00 2001 From: wangmingrong1 Date: Mon, 5 Aug 2024 09:53:51 +0800 Subject: [PATCH] coredump.c: Delete the judgment of continue Signed-off-by: wangmingrong1 --- sched/misc/coredump.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sched/misc/coredump.c b/sched/misc/coredump.c index b90efd7661..8f1b4c3b50 100644 --- a/sched/misc/coredump.c +++ b/sched/misc/coredump.c @@ -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++) { - if (g_tcbinfo.reg_off.p[i] == UINT16_MAX) - { - continue; - } - else + if (g_tcbinfo.reg_off.p[i] != UINT16_MAX) { status.pr_regs[i] = *(uintptr_t *)((uint8_t *)regs + g_tcbinfo.reg_off.p[i]);