mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
part_efi: Drop the NULL check on dev_desc in part_print_efi()
This cannot be NULL since part_print() calls this function and requires it to be non-NULL. Reported-by: Coverity (CID: 138498) Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
0919228cf4
commit
5f095f0c7a
|
@ -184,10 +184,6 @@ void part_print_efi(struct blk_desc *dev_desc)
|
||||||
char uuid[37];
|
char uuid[37];
|
||||||
unsigned char *uuid_bin;
|
unsigned char *uuid_bin;
|
||||||
|
|
||||||
if (!dev_desc) {
|
|
||||||
printf("%s: Invalid Argument(s)\n", __func__);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
/* This function validates AND fills in the GPT header and PTE */
|
/* This function validates AND fills in the GPT header and PTE */
|
||||||
if (is_gpt_valid(dev_desc, GPT_PRIMARY_PARTITION_TABLE_LBA,
|
if (is_gpt_valid(dev_desc, GPT_PRIMARY_PARTITION_TABLE_LBA,
|
||||||
gpt_head, &gpt_pte) != 1) {
|
gpt_head, &gpt_pte) != 1) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user