]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: remove obsolete code
authorKarel Zak <kzak@redhat.com>
Thu, 18 Apr 2013 09:56:46 +0000 (11:56 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 18 Apr 2013 09:56:46 +0000 (11:56 +0200)
 ... forgot in the previous commit to the swap prober.

Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/superblocks/swap.c

index 17f07255ce8ded73ee78f7dca56999dd13fcea81..679c818045fafe4495f12c81666d7c7ce91bee07 100644 (file)
@@ -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"));