From 054f5815c5117f54eb8a161bf78ace3656805768 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Fri, 26 Nov 2021 12:22:09 +0000 Subject: vfs: plug a set-but-not-used var in kern_alternate_path Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/kern/vfs_lookup.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys') 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; -- cgit v1.2.3