
From: Simon Glass <sjg@chromium.org> When this environment variable is missing, reserve space using lmb. Signed-off-by: Simon Glass <sjg@chromium.org> --- boot/pxe_utils.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/boot/pxe_utils.c b/boot/pxe_utils.c index 3b487b2ed8e..0cfe8a4fe1b 100644 --- a/boot/pxe_utils.c +++ b/boot/pxe_utils.c @@ -691,18 +691,12 @@ static int label_boot(struct pxe_context *ctx, struct pxe_label *label) if (get_relfile_envaddr(ctx, label->kernel, "kernel_addr_r", SZ_2M, (enum bootflow_img_t)IH_TYPE_KERNEL, - &addr, NULL) < 0) { + &kern_addr, NULL) < 0) { printf("Skipping %s for failure retrieving kernel\n", label->name); return 1; } - kern_addr = env_get_hex("kernel_addr_r", 0); - if (!kern_addr) { - printf("No kernel_addr_r available for kernel\n"); - return 1; - } - /* for FIT, append the configuration identifier */ snprintf(fit_addr, sizeof(fit_addr), "%lx%s", kern_addr, label->config ? label->config : ""); -- 2.43.0