Skip to content

Commit e7f151d

Browse files
committed
Fixed: unused variable
1 parent 02c2152 commit e7f151d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/elf.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ int elf_store_image_scattered(const unsigned char *hdr, unsigned long *entry_out
193193
const unsigned char *image;
194194
int is_elf32;
195195
unsigned short entry_count;
196-
unsigned short entry_size;
197196
unsigned long entry_off;
198197
int i;
199198
image = hdr + IMAGE_HEADER_SIZE;
@@ -207,7 +206,6 @@ int elf_store_image_scattered(const unsigned char *hdr, unsigned long *entry_out
207206

208207
eh = (const elf32_header *)image;
209208
entry_count = eh->ph_entry_count;
210-
entry_size = eh->ph_entry_size;
211209
entry_off = eh->ph_offset;
212210
*entry_out = (unsigned long)eh->entry;
213211

@@ -246,7 +244,6 @@ int elf_store_image_scattered(const unsigned char *hdr, unsigned long *entry_out
246244

247245
eh = (const elf64_header *)image;
248246
entry_count = eh->ph_entry_count;
249-
entry_size = eh->ph_entry_size;
250247
entry_off = eh->ph_offset;
251248
*entry_out = (unsigned long)eh->entry;
252249

0 commit comments

Comments
 (0)