From 7553740c0180a5047da1e76c043ad0ea925fd997 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 18 Apr 2013 11:56:46 +0200 Subject: [PATCH] libblkid: remove obsolete code ... forgot in the previous commit to the swap prober. Signed-off-by: Karel Zak --- libblkid/src/superblocks/swap.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libblkid/src/superblocks/swap.c b/libblkid/src/superblocks/swap.c index 17f07255ce..679c818045 100644 --- a/libblkid/src/superblocks/swap.c +++ b/libblkid/src/superblocks/swap.c @@ -47,10 +47,6 @@ static int swap_set_info(blkid_probe pr, const char *version) return -1; /* SWAPSPACE2 - check for wrong version or zeroed pagecount */ - if (strcmp(version, "2") == 0 && - (hdr->version != 1 || hdr->lastpage == 0)) - return -1; - if (strcmp(version, "2") == 0) { if (hdr->version != 1 && swab32(hdr->version) != 1) { DBG(LOWPROBE, blkid_debug("incorrect swap version")); -- 2.47.3