Skip to contentSkip to conversation

i386: bzImage: Fix -Wunused-but-set-variable compilation warning

PATCH Applied Ameya Palande 2 participants 3 messages Feb 12, 2015 – Feb 25, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386: bzImage: Fix -Wunused-but-set-variable compilation warning

kexec/arch/i386/kexec-bzImage.c:111:8: warning: variable ‘kernel_version’ set but not used [-Wunused-but-set-variable]

---
 kexec/arch/i386/kexec-bzImage.c | 2 --
 1 file changed, 2 deletions(-)
kexec/arch/i386/kexec-bzImage.c +0 -2
index e7bc1d6..df8985d 100644
@@ -108,7 +108,6 @@ int do_bzImage_load(struct kexec_info *info,
 	struct x86_linux_header setup_header;
 	struct x86_linux_param_header *real_mode;
 	int setup_sects;
-	char *kernel_version;
 	size_t size;
 	int kern16_size;
 	unsigned long setup_base, setup_size;
@@ -134,7 +133,6 @@ int do_bzImage_load(struct kexec_info *info,
 	}
 
 	kern16_size = (setup_sects +1) *512;
-	kernel_version = ((char *)&setup_header) + 512 + setup_header.kver_addr;
 	if (kernel_len < kern16_size) {
 		fprintf(stderr, "BzImage truncated?\n");
 		return -1;
Signature · 7 lines
1.8.3.1


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec