From nobody Fri Nov 26 12:23:08 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 384FA18B988E; Fri, 26 Nov 2021 12:23:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J0v646Gv4z3Gvb; Fri, 26 Nov 2021 12:23:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B3D8FB06; Fri, 26 Nov 2021 12:23:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1AQCN8bI041841; Fri, 26 Nov 2021 12:23:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AQCN8Us041840; Fri, 26 Nov 2021 12:23:08 GMT (envelope-from git) Date: Fri, 26 Nov 2021 12:23:08 GMT Message-Id: <202111261223.1AQCN8Us041840@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: 054f5815c511 - main - vfs: plug a set-but-not-used var in kern_alternate_path List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 054f5815c5117f54eb8a161bf78ace3656805768 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637929388; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZiYzEOUXGQ/xYzoMgK4lQQe4SkRyWIEfxKpjozhY8Sc=; b=hxHZxIiws+Czjndq1W4d1S3bx4UhtR2v4/eTW722vZ8TqUMrSEkr/49rm6fqRVULkNuERK Df0IWa4z0hfSvMa0YbmNQE/HJEjTcvflYn6h0PlW/0C9BkPHU5TLsdpoAzAwFKplixkKmk CGEPQVSJXHpbrXFYELeNGhRe422RqW9RhQuGeah78fonRmq2EmlVpJt5b3HZ+cbrVsdIHm WY2j1KAOM74IhnMNFVPaFZCW+ztdaTMQS+JSH3yZJ9qoDqK4TCVbC3f9Jo3/i7yy2z5ByW Y2INGuIwlndfEWoyL5RxNBPkB3+RtyPPnlfmuEhLmc8IlqNbrmgANtrPI3aTCA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637929388; a=rsa-sha256; cv=none; b=B+UbrVvhxUQ7/NKGqDebyTTt3sQI1myiabpG4vaUv6AanEx3GChKz4usxizg6mpUkZ2ZL3 DVfKq75mzryNPNsCYAtk9hlYO3mccIrmcCq4U1leLXsOMC2BdSVSTAMIkk3EsAEng0Brot IkI/PfG4NZTii1lIpkxjH+L+grdmj7D1sI/Kn6idyje0o9/gDamYfS21gjYs4/asbSUrXP a7iliOEyvwsHhvGEu6FRD3WtNvkqJQy8BNbgospnHj5jiWTevt4EfhV/AgiApM0KZKwOqC ACewmNUrxUDy4cKCL7KXtBS01dMkXR6amWSZuwkvRuX8er7K5M4QdM0v2y/vaQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=054f5815c5117f54eb8a161bf78ace3656805768 commit 054f5815c5117f54eb8a161bf78ace3656805768 Author: Mateusz Guzik AuthorDate: 2021-11-26 12:22:09 +0000 Commit: Mateusz Guzik CommitDate: 2021-11-26 12:22:09 +0000 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(-) 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;