mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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
This commit is contained in:
parent
13b8219bd0
commit
0b71b37241
1 changed files with 0 additions and 2 deletions
|
@ -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) !=
|
||||
|
|
Loading…
Add table
Reference in a new issue