From: Dmitry V. Levin Date: Tue, 30 Aug 2016 09:12:06 +0000 (+0000) Subject: Remove redundant check for PTRACE_LISTEN availability X-Git-Tag: v4.14~156 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae914db459696e385f4af380fae0652793d6178a;p=strace Remove redundant check for PTRACE_LISTEN availability As ptrace.h already ensures that PTRACE_LISTEN is defined, there is no need to check this fact in other places. * strace.c (ptrace_restart): Do not check that PTRACE_LISTEN is defined. --- diff --git a/strace.c b/strace.c index a4b999e1..ffb6baec 100644 --- a/strace.c +++ b/strace.c @@ -405,10 +405,8 @@ ptrace_restart(int op, struct tcb *tcp, int sig) msg = "CONT"; if (op == PTRACE_DETACH) msg = "DETACH"; -#ifdef PTRACE_LISTEN if (op == PTRACE_LISTEN) msg = "LISTEN"; -#endif /* * Why curcol != 0? Otherwise sometimes we get this: *