]> git.proxmox.com Git - mirror_zfs.git/commitdiff
FreeBSD: remove unused variable
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Thu, 23 Dec 2021 20:47:43 +0000 (21:47 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 6 Jan 2022 20:46:49 +0000 (12:46 -0800)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Issue #12899

module/os/freebsd/zfs/zfs_znode.c

index 80b702c7129750666d4d4cec87e3a069ca8935cc..2ffa403d028d6293f63f25bd085fed35ef8fe166 100644 (file)
@@ -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 @@ 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