Commit 5f095f0c7a7ba346eb0a5096f83486ddcd6f0a27
Committed by
Tom Rini
1 parent
0919228cf4
Exists in
v2017.01-smarct4x
and in
29 other branches
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>
Showing 1 changed file with 0 additions and 4 deletions Side-by-side Diff
disk/part_efi.c
... | ... | @@ -184,10 +184,6 @@ |
184 | 184 | char uuid[37]; |
185 | 185 | unsigned char *uuid_bin; |
186 | 186 | |
187 | - if (!dev_desc) { | |
188 | - printf("%s: Invalid Argument(s)\n", __func__); | |
189 | - return; | |
190 | - } | |
191 | 187 | /* This function validates AND fills in the GPT header and PTE */ |
192 | 188 | if (is_gpt_valid(dev_desc, GPT_PRIMARY_PARTITION_TABLE_LBA, |
193 | 189 | gpt_head, &gpt_pte) != 1) { |