projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5ecdd0
)
gpt: command: Remove duplicated check for empty partition description
author
Lukasz Majewski
<l.majewski@majess.pl>
Fri, 20 Nov 2015 07:06:13 +0000
(08:06 +0100)
committer
Tom Rini
<trini@konsulko.com>
Mon, 23 Nov 2015 15:56:08 +0000
(10:56 -0500)
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>
common/cmd_gpt.c
patch
|
blob
|
history
diff --git
a/common/cmd_gpt.c
b/common/cmd_gpt.c
index e3c0297a1ce5bdb89f3c9d687296f064a9c67890..6bea2c7c3ab61761e0c5dc7891b350d8d8915847 100644
(file)
--- 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);