Skip to content

Commit 0b71b37

Browse files
evdenismpe
authored andcommitted
powerpc/ptrace: Remove duplicate check from pt_regs_check()
"offsetof(struct pt_regs, msr) == offsetof(struct user_pt_regs, msr)" checked in pt_regs_check() twice in a row. Remove the second check. Signed-off-by: Denis Efremov <efremov@linux.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210305112807.26299-1-efremov@linux.com
1 parent 13b8219 commit 0b71b37

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/powerpc/kernel/ptrace/ptrace.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,6 @@ void __init pt_regs_check(void)
354354
offsetof(struct user_pt_regs, nip));
355355
BUILD_BUG_ON(offsetof(struct pt_regs, msr) !=
356356
offsetof(struct user_pt_regs, msr));
357-
BUILD_BUG_ON(offsetof(struct pt_regs, msr) !=
358-
offsetof(struct user_pt_regs, msr));
359357
BUILD_BUG_ON(offsetof(struct pt_regs, orig_gpr3) !=
360358
offsetof(struct user_pt_regs, orig_gpr3));
361359
BUILD_BUG_ON(offsetof(struct pt_regs, ctr) !=

0 commit comments

Comments
 (0)