svn commit: r283976 - head/lib/libdevstat
Marcelo Araujo
araujo at FreeBSD.org
Thu Jun 4 02:50:14 UTC 2015
Author: araujo (ports committer)
Date: Thu Jun 4 02:50:13 2015
New Revision: 283976
URL: https://svnweb.freebsd.org/changeset/base/283976
Log:
Remove unused variable and silence clang warnings.
Differential Revision: D2681
Reviewed by: rodrigc
Modified:
head/lib/libdevstat/devstat.c
Modified: head/lib/libdevstat/devstat.c
==============================================================================
--- head/lib/libdevstat/devstat.c Thu Jun 4 02:48:04 2015 (r283975)
+++ head/lib/libdevstat/devstat.c Thu Jun 4 02:50:13 2015 (r283976)
@@ -334,7 +334,6 @@ devstat_getdevs(kvm_t *kd, struct statin
{
int error;
size_t dssize;
- int oldnumdevs;
long oldgeneration;
int retval = 0;
struct devinfo *dinfo;
@@ -348,7 +347,6 @@ devstat_getdevs(kvm_t *kd, struct statin
return(-1);
}
- oldnumdevs = dinfo->numdevs;
oldgeneration = dinfo->generation;
if (kd == NULL) {
More information about the svn-src-all
mailing list