From 1bd1e9a876385cd41c5b39463cb4321a58a570b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Thu, 23 Dec 2021 21:47:43 +0100 Subject: [PATCH] FreeBSD: remove unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Brian Behlendorf Signed-off-by: Ahelenia ZiemiaƄska Issue #12899 --- module/os/freebsd/zfs/zfs_znode.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/module/os/freebsd/zfs/zfs_znode.c b/module/os/freebsd/zfs/zfs_znode.c index 80b702c71297..2ffa403d028d 100644 --- a/module/os/freebsd/zfs/zfs_znode.c +++ b/module/os/freebsd/zfs/zfs_znode.c @@ -926,11 +926,9 @@ zfs_zget(zfsvfs_t *zfsvfs, uint64_t obj_num, znode_t **zpp) znode_t *zp; vnode_t *vp; sa_handle_t *hdl; - struct thread *td; int locked; int err; - td = curthread; getnewvnode_reserve_(); again: *zpp = NULL; @@ -956,7 +954,7 @@ zfs_zget(zfsvfs_t *zfsvfs, uint64_t obj_num, znode_t **zpp) hdl = dmu_buf_get_user(db); if (hdl != NULL) { - zp = sa_get_userdata(hdl); + zp = sa_get_userdata(hdl); /* * Since "SA" does immediate eviction we