powerpc/ptrace: Remove duplicate check from pt_regs_check()
PATCH 1/1 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 <[email protected]>
--- arch/powerpc/kernel/ptrace/ptrace.c | 2 -- 1 file changed, 2 deletions(-)
arch/powerpc/kernel/ptrace/ptrace.c +0 -2
@@ -354,8 +354,6 @@ void __init pt_regs_check(void) offsetof(struct user_pt_regs, nip));BUILD_BUG_ON (offsetof(struct pt_regs , msr) != offsetof(struct user_pt_regs , msr)); -BUILD_BUG_ON (offsetof(struct pt_regs , msr) != - offsetof(struct user_pt_regs , msr));BUILD_BUG_ON (offsetof(struct pt_regs , orig_gpr3) != offsetof(struct user_pt_regs , orig_gpr3)); BUILD_BUG_ON(offsetof(struct pt_regs, ctr) !=
Signature · 1 line
2.26.2
Michael Ellerman
AppliedQuoted 2 lines · Denis Efremov
"
offsetof(struct pt_regs, msr)==offsetof(struct user_pt_regs, msr)" checked inpt_regs_check()twice in a row. Remove the second check.
Applied to powerpc/next.
[1/1] powerpc/ptrace: Remove duplicate check from pt_regs_check()
https://git.kernel.org/powerpc/c/0b71b37241784c309bea6bd6a9d2027943c4ab94
cheers