ptrace: remove redudant check of #ifdef PTRACE_SINGLESTEP
authorTiezhu Yang <yangtiezhu@loongson.cn>
Fri, 29 Apr 2022 21:38:02 +0000 (14:38 -0700)
committerakpm <akpm@linux-foundation.org>
Fri, 29 Apr 2022 21:38:02 +0000 (14:38 -0700)
commitf26b2afd53e70db67be8252d340b4a1387ec8b55
tree134d90902b6f174f4579f9b63321a529eae84407
parent183c3237c928109d2008c0456dff508baf692b20
ptrace: remove redudant check of #ifdef PTRACE_SINGLESTEP

Patch series "ptrace: do some cleanup".

This patch (of 3):

PTRACE_SINGLESTEP is always defined as 9 in include/uapi/linux/ptrace.h,
remove redudant check of #ifdef PTRACE_SINGLESTEP.

Link: https://lkml.kernel.org/r/1649240981-11024-2-git-send-email-yangtiezhu@loongson.cn
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/ptrace.c