diff mbox series

[15/32] kpartx: remove duplicated gpt validation check

Message ID 1533157038-3924-16-git-send-email-bmarzins@redhat.com (mailing list archive)
State Not Applicable, archived
Delegated to: christophe varoqui
Headers show
Series Misc Multipath patches | expand

Commit Message

Benjamin Marzinski Aug. 1, 2018, 8:57 p.m. UTC
The identical check exists twice in a row.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
---
 kpartx/gpt.c | 10 ----------
 1 file changed, 10 deletions(-)
diff mbox series

Patch

diff --git a/kpartx/gpt.c b/kpartx/gpt.c
index 6ef20f9..e31611a 100644
--- a/kpartx/gpt.c
+++ b/kpartx/gpt.c
@@ -348,16 +348,6 @@  is_gpt_valid(int fd, uint64_t lba,
 		return 0;
 	}
 
-
-	/* Check that sizeof_partition_entry has the correct value */
-	if (__le32_to_cpu((*gpt)->sizeof_partition_entry) != sizeof(gpt_entry)) {
-		// printf("GUID partition entry size check failed.\n");
-		free(*gpt);
-		*gpt = NULL;
-		return 0;
-	}
-
-
 	if (!(*ptes = alloc_read_gpt_entries(fd, *gpt))) {
 		free(*gpt);
 		*gpt = NULL;