diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2015-08-05 17:17:03 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-08-13 07:19:37 -0400 |
commit | d89212b796b8a59237f48b2149864bb89800c8a0 (patch) | |
tree | 40c1f765ca6287b636fb0c8e4db87ebed1c0f26e | |
parent | bd8ecfb88cad67a218b4aa65696e270f2fa177a5 (diff) | |
download | u-boot-imx-d89212b796b8a59237f48b2149864bb89800c8a0.zip u-boot-imx-d89212b796b8a59237f48b2149864bb89800c8a0.tar.gz u-boot-imx-d89212b796b8a59237f48b2149864bb89800c8a0.tar.bz2 |
image-fdt.c: store returned error value
This fixes the following warning (and the runtime error reporting):
../common/image-fdt.c:491:4: warning: 'fdt_ret' may be used
uninitialized in this function [-Wmaybe-uninitialized]
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | common/image-fdt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/image-fdt.c b/common/image-fdt.c index 80e3e63..5180a03 100644 --- a/common/image-fdt.c +++ b/common/image-fdt.c @@ -492,7 +492,8 @@ int image_setup_libfdt(bootm_headers_t *images, void *blob, } } if (IMAGE_OF_SYSTEM_SETUP) { - if (ft_system_setup(blob, gd->bd)) { + fdt_ret = ft_system_setup(blob, gd->bd); + if (fdt_ret) { printf("ERROR: system-specific fdt fixup failed: %s\n", fdt_strerror(fdt_ret)); goto err; |