bootm_relocate_fdt takes the os address as parameter, but this can be extracted from struct image_data, so drop the parameter. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- arch/ppc/lib/ppclinux.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/ppc/lib/ppclinux.c b/arch/ppc/lib/ppclinux.c index ed2f769c25..67649f3b46 100644 --- a/arch/ppc/lib/ppclinux.c +++ b/arch/ppc/lib/ppclinux.c @@ -14,8 +14,9 @@ #include <restart.h> #include <fs.h> -static int bootm_relocate_fdt(void *os, struct image_data *data) +static int bootm_relocate_fdt(struct image_data *data) { + void *os = (void *)data->os_address; void *newfdt; if (os < LINUX_TLB1_MAX_ADDR) { @@ -73,9 +74,7 @@ static int do_bootm_linux(struct image_data *data) void *addr = data->oftree; if ((addr + data->oftree->totalsize) > LINUX_TLB1_MAX_ADDR) { - addr = (void *)data->os_address; - - if (bootm_relocate_fdt(addr, data)) + if (bootm_relocate_fdt(data)) goto error; } } -- 2.17.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox