mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
part_efi: Drop NULL check in part_get_info_efi()
This cannot be NULL since part_get_info() calls this function and requires it to be non-NULL. Reported-by: Coverity (CID: 138497) Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
5f095f0c7a
commit
4708a07c7c
1 changed files with 1 additions and 1 deletions
|
|
@ -240,7 +240,7 @@ int part_get_info_efi(struct blk_desc *dev_desc, int part,
|
|||
gpt_entry *gpt_pte = NULL;
|
||||
|
||||
/* "part" argument must be at least 1 */
|
||||
if (!dev_desc || !info || part < 1) {
|
||||
if (part < 1) {
|
||||
printf("%s: Invalid Argument(s)\n", __func__);
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue