Remove unused variable and silence clang warnings.
Differential Revision: D2681 Reviewed by: rodrigc
This commit is contained in:
parent
05ca4439a2
commit
58c8c85234
@ -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