Merge tag 'ptrace_stop-cleanup-for-v5.19' of git://git.kernel.org/pub/scm/linux/kerne...
[sfrench/cifs-2.6.git] / kernel / ptrace.c
index 328a34a991248923d564a76e87d588e4562bb9ff..156a99283b11d8638dc490edbe0f1a188fccc12b 100644 (file)
@@ -825,11 +825,7 @@ static long ptrace_get_rseq_configuration(struct task_struct *task,
 }
 #endif
 
-#ifdef PTRACE_SINGLESTEP
 #define is_singlestep(request)         ((request) == PTRACE_SINGLESTEP)
-#else
-#define is_singlestep(request)         0
-#endif
 
 #ifdef PTRACE_SINGLEBLOCK
 #define is_singleblock(request)                ((request) == PTRACE_SINGLEBLOCK)
@@ -1209,9 +1205,7 @@ int ptrace_request(struct task_struct *child, long request,
        }
 #endif
 
-#ifdef PTRACE_SINGLESTEP
        case PTRACE_SINGLESTEP:
-#endif
 #ifdef PTRACE_SINGLEBLOCK
        case PTRACE_SINGLEBLOCK:
 #endif