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>
This commit is contained in:
parent
b5fc9f99d0
commit
51a765b376
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ static int select_ramdisk(struct bootm_headers *images, const char *select, u8 a
|
||||||
bool done_select = !select;
|
bool done_select = !select;
|
||||||
bool done = false;
|
bool done = false;
|
||||||
int rd_noffset;
|
int rd_noffset;
|
||||||
ulong rd_addr;
|
ulong rd_addr = 0;
|
||||||
char *buf;
|
char *buf;
|
||||||
|
|
||||||
if (CONFIG_IS_ENABLED(FIT)) {
|
if (CONFIG_IS_ENABLED(FIT)) {
|
||||||
|
|
Loading…
Reference in a new issue