Skip to content
Snippets Groups Projects
Commit 5af9dd37 authored by Lukasz Majewski's avatar Lukasz Majewski Committed by Tom Rini
Browse files

gpt: command: Remove duplicated check for empty partition description


Exactly the same check is performed in set_gpt_info() function executed
just after this check.

Signed-off-by: default avatarLukasz Majewski <l.majewski@majess.pl>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent a5ecdd08
No related branches found
No related tags found
Loading
......@@ -293,9 +293,6 @@ static int gpt_default(block_dev_desc_t *blk_dev_desc, const char *str_part)
u8 part_count = 0;
disk_partition_t *partitions = NULL;
if (!str_part)
return -1;
/* fill partitions */
ret = set_gpt_info(blk_dev_desc, str_part,
&str_disk_guid, &partitions, &part_count);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment