From dc87aac5d1492fdf395ffbd2a8f204a394e99a0e Mon Sep 17 00:00:00 2001 From: araujo Date: Thu, 4 Jun 2015 02:50:13 +0000 Subject: [PATCH] Remove unused variable and silence clang warnings. Differential Revision: D2681 Reviewed by: rodrigc --- lib/libdevstat/devstat.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/libdevstat/devstat.c b/lib/libdevstat/devstat.c index d52332bd5931..68b5028c7c9a 100644 --- a/lib/libdevstat/devstat.c +++ b/lib/libdevstat/devstat.c @@ -334,7 +334,6 @@ devstat_getdevs(kvm_t *kd, struct statinfo *stats) { 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 statinfo *stats) return(-1); } - oldnumdevs = dinfo->numdevs; oldgeneration = dinfo->generation; if (kd == NULL) {