summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorakfaew <akfaew@cvs.openbsd.org>2016-09-01 12:47:19 +0000
committerakfaew <akfaew@cvs.openbsd.org>2016-09-01 12:47:19 +0000
commit1b38e79da17039833e30b01a66fd1884eed5a728 (patch)
tree460c26e9cf9e08a5c020af30ba8e09120c3848ab /sys
parente7fa393a572d20b486548497e161c8770556172b (diff)
Get rid of 'relebad:'.
OK natano@ guenther@
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/sys_process.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c
index ca72f119b37..9ebbcc2b720 100644
--- a/sys/kern/sys_process.c
+++ b/sys/kern/sys_process.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_process.c,v 1.69 2016/05/31 22:34:53 jca Exp $ */
+/* $OpenBSD: sys_process.c,v 1.70 2016/09/01 12:47:18 akfaew Exp $ */
/* $NetBSD: sys_process.c,v 1.55 1996/05/15 06:17:47 tls Exp $ */
/*-
@@ -454,7 +454,7 @@ sys_ptrace(struct proc *p, void *v, register_t *retval)
/* If the address parameter is not (int *)1, set the pc. */
if ((int *)SCARG(uap, addr) != (int *)1)
if ((error = process_set_pc(t, SCARG(uap, addr))) != 0)
- goto relebad;
+ return error;
#ifdef PT_STEP
/*
@@ -462,7 +462,7 @@ sys_ptrace(struct proc *p, void *v, register_t *retval)
*/
error = process_sstep(t, req == PT_STEP);
if (error)
- goto relebad;
+ return error;
#endif
goto sendsig;
@@ -492,7 +492,7 @@ sys_ptrace(struct proc *p, void *v, register_t *retval)
*/
error = process_sstep(t, 0);
if (error)
- goto relebad;
+ return error;
#endif
/* give process back to original parent or init */
@@ -523,9 +523,6 @@ sys_ptrace(struct proc *p, void *v, register_t *retval)
return (0);
- relebad:
- return (error);
-
case PT_KILL:
if (SCARG(uap, pid) < THREAD_PID_OFFSET && tr->ps_single)
t = tr->ps_single;