projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4e355f
)
optee: Replace uninitialized return variable by proper one.
author
Christoph Müllner
<christoph.muellner@theobroma-systems.com>
Sun, 26 Jan 2020 22:20:54 +0000
(23:20 +0100)
committer
Tom Rini
<trini@konsulko.com>
Thu, 30 Jan 2020 18:30:35 +0000
(13:30 -0500)
As hinted by GCC 9, there is a return statement that returns
an uninitialized variable in optee_copy_firmware_node().
This patch addresses this.
Signed-off-by: Christoph Müllner <christoph.muellner@theobroma-systems.com>
Reviewed-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
lib/optee/optee.c
patch
|
blob
|
history
diff --git
a/lib/optee/optee.c
b/lib/optee/optee.c
index
9b49eb8
..
d4355c6
100644
(file)
--- a/
lib/optee/optee.c
+++ b/
lib/optee/optee.c
@@
-92,7
+92,7
@@
static int optee_copy_firmware_node(const void *old_blob, void *fdt_blob)
offs = fdt_add_subnode(fdt_blob, offs, "optee");
if (offs < 0)
- return
ret
;
+ return
offs
;
/* copy the compatible property */
prop = fdt_getprop(old_blob, old_offs, "compatible", &len);