From 73db9f622c5c5179b46f36edb63c30e1a82c5269 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 11 Mar 2009 23:05:42 -0700 Subject: [PATCH] Pull unused err variable under HAVE_DM_INUSE_SWAP ifdef. --- cmd/zpool/zpool_vdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/zpool/zpool_vdev.c b/cmd/zpool/zpool_vdev.c index 835b9017d3..3971e489e9 100644 --- a/cmd/zpool/zpool_vdev.c +++ b/cmd/zpool/zpool_vdev.c @@ -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);