riscv: ptrace: Remove duplicate operation
authorGuo Ren <guoren@linux.alibaba.com>
Wed, 22 Feb 2023 03:30:16 +0000 (22:30 -0500)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 23 Mar 2023 15:46:58 +0000 (08:46 -0700)
commit8574bf8d0ddd46f0bc393381563f59a6f4418a3e
tree379ad6000046cba77f179edc5bed9d2eb1eb8097
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6
riscv: ptrace: Remove duplicate operation

The TIF_SYSCALL_TRACE is controlled by a common code, see
kernel/ptrace.c and include/linux/thread_info.h.

clear_task_syscall_work(child, SYSCALL_TRACE);

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Björn Töpel <bjorn@rivosinc.com>
Link: https://lore.kernel.org/r/20230222033021.983168-3-guoren@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/ptrace.c