Pull unused err variable under HAVE_DM_INUSE_SWAP ifdef.

This commit is contained in:
Brian Behlendorf 2009-03-11 23:05:42 -07:00
parent 77fc222d44
commit 73db9f622c
1 changed files with 2 additions and 2 deletions

View File

@ -287,11 +287,11 @@ check_file(const char *file, boolean_t force, boolean_t isspare)
char *name;
int fd;
int ret = 0;
int err;
pool_state_t state;
boolean_t inuse;
#ifdef HAVE_DM_INUSE_SWAP
int err;
if (dm_inuse_swap(file, &err)) {
if (err)
libdiskmgt_error(err);