aboutsummaryrefslogtreecommitdiff
path: root/boot/image-board.c
diff options
context:
space:
mode:
authorTom Rini2023-04-05 19:48:56 -0400
committerTom Rini2023-04-25 15:31:27 -0400
commit51a765b37671b4460fdefef5000b9eb6988fddc8 (patch)
tree468e14d0475a6e9344d37e32a184ab7f1d13f6dc /boot/image-board.c
parentb5fc9f99d0d5324b6159b3a1da7bb679cf5fc901 (diff)
boot/image-board.c: Silence warning in select_ramdisk
When building with clang we get a warning that rdaddr could be uninitialized in one case. While this cannot functionally happen, we can easily silence the warning. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot/image-board.c')
-rw-r--r--boot/image-board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/image-board.c b/boot/image-board.c
index c602832249e..d500da1b4b9 100644
--- a/boot/image-board.c
+++ b/boot/image-board.c
@@ -328,7 +328,7 @@ static int select_ramdisk(struct bootm_headers *images, const char *select, u8 a
bool done_select = !select;
bool done = false;
int rd_noffset;
- ulong rd_addr;
+ ulong rd_addr = 0;
char *buf;
if (CONFIG_IS_ENABLED(FIT)) {