aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_lookup.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c
index d5960dd9e920..d05e1658a004 100644
--- a/sys/kern/vfs_lookup.c
+++ b/sys/kern/vfs_lookup.c
@@ -1676,13 +1676,11 @@ int
kern_alternate_path(const char *prefix, const char *path, enum uio_seg pathseg,
char **pathbuf, int create, int dirfd)
{
- struct thread *td;
struct nameidata nd, ndroot;
char *ptr, *buf, *cp;
size_t len, sz;
int error;
- td = curthread;
buf = (char *) malloc(MAXPATHLEN, M_TEMP, M_WAITOK);
*pathbuf = buf;