rockchip: resource_img: remove compile warning

Change-Id: I1cb85231be68b67e6a339a46be00a6f592986a9b
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
Kever Yang 2018-01-23 08:53:00 +08:00
parent 22ae868202
commit bb1716ec8e
2 changed files with 1 additions and 2 deletions

View File

@ -222,7 +222,6 @@ static int init_resource_list(struct resource_img_hdr *hdr)
debug("%s Load resource from %s\n", __func__, part_info.name);
}
hdr = (void *)andr_hdr;
ret = blk_dread(dev_desc, offset, 1, hdr);
if (ret != 1)
goto out;

View File

@ -314,7 +314,7 @@ int boot_rockchip_image(struct blk_desc *dev_desc, disk_partition_t *boot_part)
printf("ramdisk @ 0x%08lx (0x%08x)\n", ramdisk_addr_r, ramdisk_size);
#if defined(CONFIG_ARM64)
char cmdbuf[64];
sprintf(cmdbuf, "booti 0x%lx 0x%lx:0x%lx 0x%lx",
sprintf(cmdbuf, "booti 0x%lx 0x%lx:0x%x 0x%lx",
kernel_addr_r, ramdisk_addr_r, ramdisk_size, fdt_addr_r);
run_command(cmdbuf, 0);
#else