summaryrefslogtreecommitdiff
path: root/sys/compat/linux
diff options
context:
space:
mode:
authordsl <dsl@NetBSD.org>2007-04-30 09:20:18 +0000
committerdsl <dsl@NetBSD.org>2007-04-30 09:20:18 +0000
commit8932ebd23833ebba67136fd24b0b8d753e50772e (patch)
tree2e43d7d5cec0095f5373db3c860ee8971a0719e3 /sys/compat/linux
parent0df00dcf5577a0a3ce38786a94ca9047a40fc891 (diff)
Remove some unused calls to stackgap_init()
Diffstat (limited to 'sys/compat/linux')
-rw-r--r--sys/compat/linux/common/linux_uselib.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/compat/linux/common/linux_uselib.c b/sys/compat/linux/common/linux_uselib.c
index 1dd1d02e163..a64471c63a1 100644
--- a/sys/compat/linux/common/linux_uselib.c
+++ b/sys/compat/linux/common/linux_uselib.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_uselib.c,v 1.21 2007/04/22 08:29:57 dsl Exp $ */
+/* $NetBSD: linux_uselib.c,v 1.22 2007/04/30 09:20:19 dsl Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_uselib.c,v 1.21 2007/04/22 08:29:57 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_uselib.c,v 1.22 2007/04/30 09:20:19 dsl Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -93,7 +93,6 @@ linux_sys_uselib(struct lwp *l, void *v, register_t *retval)
struct linux_sys_uselib_args /* {
syscallarg(const char *) path;
} */ *uap = v;
- void *sg;
long bsize, dsize, tsize, taddr, baddr, daddr;
struct nameidata ni;
struct vnode *vp;
@@ -102,8 +101,6 @@ linux_sys_uselib(struct lwp *l, void *v, register_t *retval)
int i, magic, error;
size_t rem;
- sg = stackgap_init(l->l_proc, 0);
-
NDINIT(&ni, LOOKUP, FOLLOW | TRYEMULROOT, UIO_USERSPACE, SCARG(uap, path), l);
if ((error = namei(&ni)))