svn commit: r283868 - head/lib/libprocstat

Marcelo Araujo araujo at FreeBSD.org
Mon Jun 1 06:05:54 UTC 2015


Author: araujo (ports committer)
Date: Mon Jun  1 06:05:53 2015
New Revision: 283868
URL: https://svnweb.freebsd.org/changeset/base/283868

Log:
  Remove unused variable spotted by clang.
  
  Differential Revision:	D2685
  Reviewed by:		rodrigc, stas

Modified:
  head/lib/libprocstat/libprocstat.c

Modified: head/lib/libprocstat/libprocstat.c
==============================================================================
--- head/lib/libprocstat/libprocstat.c	Mon Jun  1 06:00:04 2015	(r283867)
+++ head/lib/libprocstat/libprocstat.c	Mon Jun  1 06:05:53 2015	(r283868)
@@ -1235,7 +1235,7 @@ procstat_get_vnode_info_kvm(kvm_t *kd, s
 	struct vnode vnode;
 	char tagstr[12];
 	void *vp;
-	int error, found;
+	int error;
 	unsigned int i;
 
 	assert(kd);
@@ -1264,7 +1264,7 @@ procstat_get_vnode_info_kvm(kvm_t *kd, s
 	/*
 	 * Find appropriate handler.
 	 */
-	for (i = 0, found = 0; i < NTYPES; i++)
+	for (i = 0; i < NTYPES; i++)
 		if (!strcmp(fstypes[i].tag, tagstr)) {
 			if (fstypes[i].handler(kd, &vnode, vn) != 0) {
 				goto fail;


More information about the svn-src-head mailing list