Skip to content

Commit 9e05b65

Browse files
Taemin Haavagin
authored andcommitted
arch/x86: remove the redundant check
The is_native field is a boolean. Therefore, else if() should can be changed to a simple else{}. Signed-off-by: Taemin Ha <[email protected]> Signed-off-by: Andrei Vagin <[email protected]>
1 parent 3015aad commit 9e05b65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

criu/arch/x86/sigframe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ int sigreturn_prep_fpu_frame(struct rt_sigframe *sigframe, struct rt_sigframe *r
2323
}
2424

2525
sigframe->native.uc.uc_mcontext.fpstate = (uint64_t)addr;
26-
} else if (!sigframe->is_native) {
26+
} else {
2727
unsigned long addr = (unsigned long)(void *)&fpu_state->fpu_state_ia32.xsave;
2828
sigframe->compat.uc.uc_mcontext.fpstate = (uint32_t)(unsigned long)(void *)&fpu_state->fpu_state_ia32;
2929
if ((addr % 64ul)) {

0 commit comments

Comments
 (0)