There are two times the same branches.
} else if (addr == LUSR_OFF(__signal)) { error = ENOTSUP; } else if (addr == LUSR_OFF(__signal)) { error = ENOTSUP; } Just delete one of them. Spotted by my code scanner. ok christos@
This commit is contained in:
parent
c1cf2f47fb
commit
8d404a3e9c
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_ptrace.c,v 1.27 2014/01/04 00:10:03 dsl Exp $ */
|
||||
/* $NetBSD: linux_ptrace.c,v 1.28 2014/04/15 17:53:09 maxv Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -30,7 +30,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.27 2014/01/04 00:10:03 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.28 2014/04/15 17:53:09 maxv Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/malloc.h>
|
||||
@ -323,8 +323,6 @@ linux_sys_ptrace_arch(struct lwp *l, const struct linux_sys_ptrace_args *uap,
|
||||
*retval = led->led_debugreg[off];
|
||||
} else if (addr == LUSR_OFF(__signal)) {
|
||||
error = ENOTSUP;
|
||||
} else if (addr == LUSR_OFF(__signal)) {
|
||||
error = ENOTSUP;
|
||||
} else if (addr == LUSR_OFF(u_fpstate)) {
|
||||
error = ENOTSUP;
|
||||
} else if (addr == LUSR_OFF(__magic)) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_ptrace.c,v 1.24 2014/01/04 00:10:03 dsl Exp $ */
|
||||
/* $NetBSD: linux_ptrace.c,v 1.25 2014/04/15 17:53:09 maxv Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
|
||||
@ -30,7 +30,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.24 2014/01/04 00:10:03 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.25 2014/04/15 17:53:09 maxv Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/malloc.h>
|
||||
@ -296,8 +296,6 @@ linux_sys_ptrace_arch(struct lwp *l, const struct linux_sys_ptrace_args *uap,
|
||||
*retval = regs->cr;
|
||||
else if (addr == LUSR_OFF(signal))
|
||||
error = 1;
|
||||
else if (addr == LUSR_OFF(signal))
|
||||
error = 1;
|
||||
else if (addr == LUSR_OFF(magic))
|
||||
error = 1;
|
||||
else if (addr == LUSR_OFF(u_comm))
|
||||
|
Loading…
Reference in New Issue
Block a user