From a49cc9811b9087c8277599a1e9a3403ef8cffb0d Mon Sep 17 00:00:00 2001 From: Claudio Carvalho Date: Mon, 31 Oct 2016 01:09:49 -0200 Subject: core/flash-subpartition.c: remove toc var to clean-up This removes the toc var. It is allocated in the function, but not used. Signed-off-by: Claudio Carvalho Signed-off-by: Stewart Smith --- core/flash-subpartition.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/flash-subpartition.c b/core/flash-subpartition.c index 0de7b4e..641448d 100644 --- a/core/flash-subpartition.c +++ b/core/flash-subpartition.c @@ -37,7 +37,7 @@ int flash_subpart_info(void *part_header, uint32_t header_len, { struct flash_hostboot_header *header; char eyecatcher[5]; - uint32_t i, ec, o, s, toc; + uint32_t i, ec, o, s; bool subpart_found; if (!part_header || ( !offset && !size && !part_actual)) { @@ -69,7 +69,6 @@ int flash_subpart_info(void *part_header, uint32_t header_len, subpart_found = false; *part_actual = 0; - toc = sizeof(header->eyecatcher) + sizeof(header->version); for (i = 0; i < FLASH_HOSTBOOT_TOC_MAX_ENTRIES; i++) { ec = be32_to_cpu(header->toc[i].ec); @@ -108,7 +107,6 @@ int flash_subpart_info(void *part_header, uint32_t header_len, *size = s; subpart_found = true; } - toc += sizeof(struct flash_hostboot_toc); } if (!subpart_found && (offset || size)) { prerror("FLASH: flash subpartition not found.\n"); -- cgit v1.1