Remove unused variable and silence clang warnings.
Differential Revision: D2681 Reviewed by: rodrigc
This commit is contained in:
parent
550d9495d7
commit
dc87aac5d1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user