summaryrefslogtreecommitdiff
path: root/purgatory
diff options
context:
space:
mode:
Diffstat (limited to 'purgatory')
-rw-r--r--purgatory/arch/ia64/purgatory-ia64.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/purgatory/arch/ia64/purgatory-ia64.c b/purgatory/arch/ia64/purgatory-ia64.c
index 8588e9b..6e06ca2 100644
--- a/purgatory/arch/ia64/purgatory-ia64.c
+++ b/purgatory/arch/ia64/purgatory-ia64.c
@@ -199,16 +199,15 @@ patch_efi_memmap(struct kexec_boot_params *params,
dst_md->num_pages = mid_pages;
dst_md->type = seg->reserved ?
EFI_UNUSABLE_MEMORY:EFI_LOADER_DATA;
- if (end_pages) {
- dest += boot_param->efi_memdesc_size;
- dst_md = dest;
- *dst_md = *src_md;
- dst_md->phys_addr = seg->end;
- dst_md->num_pages = end_pages;
- dst_md->type = orig_type;
- mstart = seg->end;
- } else
+ if (!end_pages)
break;
+ dest += boot_param->efi_memdesc_size;
+ dst_md = dest;
+ *dst_md = *src_md;
+ dst_md->phys_addr = seg->end;
+ dst_md->num_pages = end_pages;
+ dst_md->type = orig_type;
+ mstart = seg->end;
}
}