This makes the tail of patch_efi_memmap() slightly less nested,
and thus a little easier to read.
    
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:55:16.000000000 +0900
+++ kexec-tools-patch-boot-params/purgatory/arch/ia64/purgatory-ia64.c  
2006-09-20 15:55:42.000000000 +0900
@@ -200,17 +200,15 @@
                        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;
-                               memcpy(dst_md, src_md,
-                                      sizeof(efi_memory_desc_t));
-                               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;
+                       memcpy(dst_md, src_md, sizeof(efi_memory_desc_t));
+                       dst_md->phys_addr = seg->end;
+                       dst_md->num_pages = end_pages;
+                       dst_md->type = orig_type;
+                       mstart = seg->end;
                }
        }
 

--

-- 
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

Reply via email to