From a4f582f0b67dda62424532eb3d1fd0d9348f07e5 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 e4a1d2db78..26cd2149c3 100644 --- a/module/os/freebsd/zfs/zfs_znode.c +++ b/module/os/freebsd/zfs/zfs_znode.c @@ -934,11 +934,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; @@ -964,7 +962,7 @@ again: 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