diff options
author | Lukasz Majewski <l.majewski@majess.pl> | 2015-11-20 08:06:13 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-11-23 10:56:08 -0500 |
commit | 5af9dd3739566767f8a64d879e01b2a916aa93f8 (patch) | |
tree | c91efe6d1b05223bf1076fe56e1ee65a42521378 | |
parent | a5ecdd08fdf647c7c5a97e937ebed2d97549352f (diff) | |
download | u-boot-imx-5af9dd3739566767f8a64d879e01b2a916aa93f8.zip u-boot-imx-5af9dd3739566767f8a64d879e01b2a916aa93f8.tar.gz u-boot-imx-5af9dd3739566767f8a64d879e01b2a916aa93f8.tar.bz2 |
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: Lukasz Majewski <l.majewski@majess.pl>
Reviewed-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | common/cmd_gpt.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/common/cmd_gpt.c b/common/cmd_gpt.c index e3c0297..6bea2c7 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); |