summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/cmd_gpt.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/common/cmd_gpt.c b/common/cmd_gpt.c
index e3c0297a1c..6bea2c7c3a 100644
--- a/common/cmd_gpt.c
+++ b/common/cmd_gpt.c
@@ -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);