diff options
author | Claudio Carvalho <cclaudio@linux.vnet.ibm.com> | 2016-10-31 01:09:49 -0200 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-11-02 16:39:37 +1100 |
commit | a49cc9811b9087c8277599a1e9a3403ef8cffb0d (patch) | |
tree | c5565cad0b858ad66a44053a626102875f114213 | |
parent | 99f146145c49e960af6e7da9391908cb30617227 (diff) | |
download | skiboot-a49cc9811b9087c8277599a1e9a3403ef8cffb0d.zip skiboot-a49cc9811b9087c8277599a1e9a3403ef8cffb0d.tar.gz skiboot-a49cc9811b9087c8277599a1e9a3403ef8cffb0d.tar.bz2 |
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 <cclaudio@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r-- | core/flash-subpartition.c | 4 |
1 files changed, 1 insertions, 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"); |