mkswap: remove unused variable when compile without libblkid

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2021-05-07 20:37:51 +02:00
parent 0ee5fcd2e8
commit 3773bb151a
1 changed files with 1 additions and 2 deletions

View File

@ -360,10 +360,9 @@ static void wipe_device(struct mkswap_control *ctl)
int zap = 1;
#ifdef HAVE_LIBBLKID
blkid_probe pr = NULL;
const char *v = NULL;
#endif
if (!ctl->force) {
const char *v = NULL;
if (lseek(ctl->fd, 0, SEEK_SET) != 0)
errx(EXIT_FAILURE, _("unable to rewind swap-device"));