git: e09814f1f293 - stable/13 - linprocfs: plug set-but-not-unused vars
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Jun 2022 19:38:37 UTC
The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=e09814f1f293fc4f600d96ebafc32ce5300c1173 commit e09814f1f293fc4f600d96ebafc32ce5300c1173 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2021-11-24 21:18:36 +0000 Commit: Dmitry Chagin <dchagin@FreeBSD.org> CommitDate: 2022-06-17 19:33:42 +0000 linprocfs: plug set-but-not-unused vars Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit ae3d955404dac5c22fdbbc9bd1a3583b4c7d8637) --- sys/compat/linprocfs/linprocfs.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c index 42e1b5e075d3..296f53dfd8c7 100644 --- a/sys/compat/linprocfs/linprocfs.c +++ b/sys/compat/linprocfs/linprocfs.c @@ -1277,7 +1277,6 @@ linprocfs_doprocmaps(PFS_FILL_ARGS) char *name = "", *freename = NULL; const char *l_map_str; ino_t ino; - int ref_count, shadow_count, flags; int error; struct vnode *vp; struct vattr vat; @@ -1331,9 +1330,6 @@ linprocfs_doprocmaps(PFS_FILL_ARGS) vref(vp); if (lobj != obj) VM_OBJECT_RUNLOCK(lobj); - flags = obj->flags; - ref_count = obj->ref_count; - shadow_count = obj->shadow_count; VM_OBJECT_RUNLOCK(obj); if (vp != NULL) { vn_fullpath(vp, &name, &freename); @@ -1353,10 +1349,6 @@ linprocfs_doprocmaps(PFS_FILL_ARGS) if (e_end == p->p_sysent->sv_usrstack) name = stack_str; } - } else { - flags = 0; - ref_count = 0; - shadow_count = 0; } /*