summaryrefslogtreecommitdiff
path: root/disk
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-03-16 07:45:36 -0600
committerTom Rini <trini@konsulko.com>2016-03-22 12:16:19 -0400
commit4708a07c7cfa754658d06283a399ddb175278de7 (patch)
treeab21e5b49a10c1aa7e0a2febc70304151073cea4 /disk
parent5f095f0c7a7ba346eb0a5096f83486ddcd6f0a27 (diff)
downloadu-boot-4708a07c7cfa754658d06283a399ddb175278de7.tar.gz
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>
Diffstat (limited to 'disk')
-rw-r--r--disk/part_efi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disk/part_efi.c b/disk/part_efi.c
index 93a7e81835..fe308d76a9 100644
--- a/disk/part_efi.c
+++ b/disk/part_efi.c
@@ -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;
}