Skip to content

Commit

Permalink
lib/ptable: Don't verify partition type
Browse files Browse the repository at this point in the history
JIRA: NIL-694
  • Loading branch information
Darchiv committed Dec 10, 2024
1 parent 1a71fe5 commit b7ebb23
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions lib/ptable.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,7 @@ static int ptable_partVerify(const ptable_t *ptable, const ptable_part_t *part,
return -1;
}

/* Verify partition type */
switch (part->type) {
case ptable_raw:
case ptable_jffs2:
case ptable_meterfs:
break;

default:
return -1;
}
/* Partition type is NOT verified on purpose */

/* Verify partition name */
for (i = 0; i < sizeof(part->name); i++) {
Expand Down

0 comments on commit b7ebb23

Please sign in to comment.