summaryrefslogtreecommitdiff
path: root/purgatory
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2006-09-22 16:45:33 +0900
committerSimon Horman <horms@verge.net.au>2006-10-06 12:46:16 +0900
commitc76818f11c0ffe6ca5d1053d4a330621d333ff8a (patch)
tree509e082296d3004636b6acd58e6257bfbcbba32e /purgatory
parent74d022921ad3a06cbb14274214d53bf1102de437 (diff)
kexec-tools: Slightly less nested logic in patch_efi_memmap()
This makes the tail of patch_efi_memmap() slightly less nested, and thus a little easier to read. Signed-Off-By: Simon Horman <horms@verge.net.au>
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;
}
}