]> granicus.if.org Git - strace/commitdiff
Remove unreachable code
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 26 Mar 2012 11:41:56 +0000 (13:41 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 26 Mar 2012 11:41:56 +0000 (13:41 +0200)
* strace.c (process_opt_p_list): Remove unreachable code.

strace.c

index 28cc6ddfae9f30dd448a6dac5c305e9d6c030ac8..3ad037d3b36143621241ee8d963d454fc1451e19 100644 (file)
--- a/strace.c
+++ b/strace.c
@@ -833,13 +833,9 @@ process_opt_p_list(char *opt)
                pid = string_to_uint(opt);
                if (pid <= 0) {
                        error_msg_and_die("Invalid process id: '%s'", opt);
-                       *delim = c;
-                       return;
                }
                if (pid == strace_tracer_pid) {
                        error_msg_and_die("I'm sorry, I can't let you do that, Dave.");
-                       *delim = c;
-                       return;
                }
                *delim = c;
                alloctcb(pid);