From: Karel Zak Date: Thu, 18 Apr 2013 09:56:46 +0000 (+0200) Subject: libblkid: remove obsolete code X-Git-Tag: v2.23~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7553740c0180a5047da1e76c043ad0ea925fd997;p=thirdparty%2Futil-linux.git libblkid: remove obsolete code ... forgot in the previous commit to the swap prober. Signed-off-by: Karel Zak --- 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"));