Skip to content

Commit 533c11e

Browse files
W-M-Rxiaoxiang781216
authored andcommitted
coredump.c: Delete the judgment of continue
Signed-off-by: wangmingrong1 <[email protected]>
1 parent 2beef70 commit 533c11e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

sched/misc/coredump.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -326,11 +326,7 @@ static void elf_emit_tcb_note(FAR struct elf_dumpinfo_s *cinfo,
326326
{
327327
for (i = 0; i < nitems(status.pr_regs); i++)
328328
{
329-
if (g_tcbinfo.reg_off.p[i] == UINT16_MAX)
330-
{
331-
continue;
332-
}
333-
else
329+
if (g_tcbinfo.reg_off.p[i] != UINT16_MAX)
334330
{
335331
status.pr_regs[i] =
336332
*(uintptr_t *)((uint8_t *)regs + g_tcbinfo.reg_off.p[i]);

0 commit comments

Comments
 (0)