diff options
author | stefanf <stefanf@FreeBSD.org> | 2005-10-04 22:00:35 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2005-10-04 22:00:35 +0000 |
commit | ec5bd3df63a65d9143691f569232b38371ad61df (patch) | |
tree | cad9cc51299152cd42a5744e6910ecd1b3d85cdf /lib/libdevstat | |
parent | 83a85292b6e247b2c710cd6e32615ed78c771057 (diff) | |
download | FreeBSD-src-ec5bd3df63a65d9143691f569232b38371ad61df.zip FreeBSD-src-ec5bd3df63a65d9143691f569232b38371ad61df.tar.gz |
Remove an unused variable.
Reviewed by: ken
Diffstat (limited to 'lib/libdevstat')
-rw-r--r-- | lib/libdevstat/devstat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libdevstat/devstat.c b/lib/libdevstat/devstat.c index c50c90b..d0ba704 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); |