aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-11-26 12:22:09 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-11-26 12:22:09 +0000
commit054f5815c5117f54eb8a161bf78ace3656805768 (patch)
tree638e85837a33f948e95653ada8a2a770cbbeec33 /sys
parent3ffcfa599e29686cf2b3c1a6087408c37acaed78 (diff)
downloadsrc-054f5815c5117f54eb8a161bf78ace3656805768.tar.gz
src-054f5815c5117f54eb8a161bf78ace3656805768.zip
vfs: plug a set-but-not-used var in kern_alternate_path
Sponsored by: Rubicon Communications, LLC ("Netgate")
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;