diff options
-rw-r--r-- | cmd/bootefi.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/cmd/bootefi.c b/cmd/bootefi.c index fdf909f8da..c82a5bacf6 100644 --- a/cmd/bootefi.c +++ b/cmd/bootefi.c @@ -403,19 +403,9 @@ static int do_bootefi_image(const char *image_opt) #ifdef CONFIG_CMD_BOOTEFI_HELLO if (!strcmp(image_opt, "hello")) { - char *saddr; - - saddr = env_get("loadaddr"); + image_buf = __efi_helloworld_begin; size = __efi_helloworld_end - __efi_helloworld_begin; - if (saddr) - addr = simple_strtoul(saddr, NULL, 16); - else - addr = CONFIG_SYS_LOAD_ADDR; - - image_buf = map_sysmem(addr, size); - memcpy(image_buf, __efi_helloworld_begin, size); - efi_free_pool(bootefi_device_path); efi_free_pool(bootefi_image_path); bootefi_device_path = NULL; |