rockchip: resrouce_img: fix compile warning

Change-Id: I495e289b915dedbfe456d15d28fbc3da4c466fa6
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
Kever Yang 2018-01-22 16:10:06 +08:00
parent 6f3eb47422
commit 3e0b6ad9e6
1 changed files with 3 additions and 1 deletions

View File

@ -153,9 +153,11 @@ static int init_resource_list(struct resource_img_hdr *hdr)
int offset = 0;
int mode = 0;
struct blk_desc *dev_desc;
struct andr_img_hdr *andr_hdr;
disk_partition_t part_info;
#ifdef CONFIG_ANDROID_BOOT_IMAGE
struct andr_img_hdr *andr_hdr;
char *boot_partname = PART_BOOT;
#endif
if (hdr) {
content = (void *)((char *)hdr