len is assigned once and used once, just use boot_param->efi_memmap_size
directly instead.
Signed-Off-By: Simon Horman <[EMAIL PROTECTED]>
Index: kexec-tools-patch-boot-params/purgatory/arch/ia64/purgatory-ia64.c
===================================================================
--- kexec-tools-patch-boot-params.orig/purgatory/arch/ia64/purgatory-ia64.c
2006-09-20 15:52:25.000000000 +0900
+++ kexec-tools-patch-boot-params/purgatory/arch/ia64/purgatory-ia64.c
2006-09-20 15:54:37.000000000 +0900
@@ -152,11 +152,10 @@
{
void *dest = (void *)params->efi_memmap_base;
void *src = (void *)boot_param->efi_memmap;
- unsigned long len = boot_param->efi_memmap_size;
unsigned long memdesc_size = boot_param->efi_memdesc_size;
uint64_t orig_type;
efi_memory_desc_t *src_md, *dst_md;
- void *src_end = src + len;
+ void *src_end = src + boot_param->efi_memmap_size;
int i;
for (; src < src_end; src += memdesc_size, dest += memdesc_size) {
unsigned long mstart, mend;
--
--
Horms
H: http://www.vergenet.net/~horms/
W: http://www.valinux.co.jp/en/
_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot