summaryrefslogtreecommitdiff
path: root/lib/libdevstat/devstat.c
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2005-10-04 22:00:35 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2005-10-04 22:00:35 +0000
commit9dbcd4b0c0139bb955d4e6055fa915c2b9dbd3b2 (patch)
treecad9cc51299152cd42a5744e6910ecd1b3d85cdf /lib/libdevstat/devstat.c
parent6dea540edc8ffe6369d26fb8a67995723b33a8f0 (diff)
downloadsrc-test2-9dbcd4b0c0139bb955d4e6055fa915c2b9dbd3b2.tar.gz
src-test2-9dbcd4b0c0139bb955d4e6055fa915c2b9dbd3b2.zip
Notes
Diffstat (limited to 'lib/libdevstat/devstat.c')
-rw-r--r--lib/libdevstat/devstat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libdevstat/devstat.c b/lib/libdevstat/devstat.c
index c50c90b95e80..d0ba704222c5 100644
--- a/lib/libdevstat/devstat.c
+++ b/lib/libdevstat/devstat.c
@@ -1582,7 +1582,7 @@ readkmem_nl(kvm_t *kd, const char *name, void *buf, size_t nbytes)
static char *
get_devstat_kvm(kvm_t *kd)
{
- int error, i, wp;
+ int i, wp;
long gen;
struct devstat *nds;
struct devstat ds;
@@ -1592,7 +1592,6 @@ get_devstat_kvm(kvm_t *kd)
if ((num_devs = devstat_getnumdevs(kd)) <= 0)
return(NULL);
- error = 0;
if (KREADNL(kd, X_DEVICE_STATQ, dhead) == -1)
return(NULL);