summaryrefslogtreecommitdiff
path: root/shim.c
diff options
context:
space:
mode:
authorGary Lin <glin@suse.com>2016-07-18 14:59:33 +0800
committerPeter Jones <pjones@redhat.com>2016-09-06 14:56:36 -0400
commitcc1fe3c6695f5edebe7608f2467b24634d4448bc (patch)
tree4c6b16ebd65ab6cac2ed5f97e36104a53fe04b7f /shim.c
parent937503156b73626b0efa88913673d9f452d1f579 (diff)
downloadefi-boot-shim-cc1fe3c6695f5edebe7608f2467b24634d4448bc.tar.gz
efi-boot-shim-cc1fe3c6695f5edebe7608f2467b24634d4448bc.zip
shim: remove unused variable
Fix the compilation error from gcc: shim.c: In function ‘handle_image’: shim.c:1121:15: error: unused variable ‘size’ [-Werror=unused-variable] unsigned int size; ^~~~ Signed-off-by: Gary Lin <glin@suse.com>
Diffstat (limited to 'shim.c')
-rw-r--r--shim.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/shim.c b/shim.c
index 40be4c7a..88b88380 100644
--- a/shim.c
+++ b/shim.c
@@ -1131,7 +1131,6 @@ static EFI_STATUS handle_image (void *data, unsigned int datasize,
EFI_STATUS efi_status;
char *buffer;
int i;
- unsigned int size;
EFI_IMAGE_SECTION_HEADER *Section;
char *base, *end;
PE_COFF_LOADER_IMAGE_CONTEXT context;