summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph Müllner <christoph.muellner@theobroma-systems.com>2020-01-27 01:20:54 +0300
committerTom Rini <trini@konsulko.com>2020-01-30 21:30:35 +0300
commit0f97e923d4921a057e1a7bbfac170cadefde5624 (patch)
tree09dd2b0b75d8b976ccf1afe306bb95bcbee1d889 /lib
parente4e355f6e456059aed4f9e4ea58eef636445e1d8 (diff)
downloadu-boot-0f97e923d4921a057e1a7bbfac170cadefde5624.tar.xz
optee: Replace uninitialized return variable by proper one.
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/optee/optee.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/optee/optee.c b/lib/optee/optee.c
index 9b49eb8ee7..d4355c6d03 100644
--- 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);