git: ae3d955404da - main - linprocfs: plug set-but-not-unused vars
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 24 Nov 2021 21:18:56 UTC
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=ae3d955404dac5c22fdbbc9bd1a3583b4c7d8637
commit ae3d955404dac5c22fdbbc9bd1a3583b4c7d8637
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-11-24 21:18:36 +0000
Commit: Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-11-24 21:18:36 +0000
linprocfs: plug set-but-not-unused vars
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
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 66c6d1cf76ac..16755402bb7b 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;
}
/*