mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
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>
This commit is contained in:
parent
e4e355f6e4
commit
0f97e923d4
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue