Pull unused err variable under HAVE_DM_INUSE_SWAP ifdef.
This commit is contained in:
parent
77fc222d44
commit
73db9f622c
|
@ -287,11 +287,11 @@ check_file(const char *file, boolean_t force, boolean_t isspare)
|
||||||
char *name;
|
char *name;
|
||||||
int fd;
|
int fd;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
int err;
|
|
||||||
pool_state_t state;
|
pool_state_t state;
|
||||||
boolean_t inuse;
|
boolean_t inuse;
|
||||||
|
|
||||||
#ifdef HAVE_DM_INUSE_SWAP
|
#ifdef HAVE_DM_INUSE_SWAP
|
||||||
|
int err;
|
||||||
|
|
||||||
if (dm_inuse_swap(file, &err)) {
|
if (dm_inuse_swap(file, &err)) {
|
||||||
if (err)
|
if (err)
|
||||||
libdiskmgt_error(err);
|
libdiskmgt_error(err);
|
||||||
|
|
Loading…
Reference in New Issue