projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f095f0
)
part_efi: Drop NULL check in part_get_info_efi()
author
Simon Glass
<sjg@chromium.org>
Wed, 16 Mar 2016 13:45:36 +0000
(07:45 -0600)
committer
Tom Rini
<trini@konsulko.com>
Tue, 22 Mar 2016 16:16:19 +0000
(12:16 -0400)
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>
disk/part_efi.c
patch
|
blob
|
history
diff --git
a/disk/part_efi.c
b/disk/part_efi.c
index 93a7e81835e9ff12e4c69a49cf686367a8e178cc..fe308d76a9bc15514bb42d2ca946094a9f07a557 100644
(file)
--- 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;
}