From edf4bc36d8be78c97b7fcaece0987ba820ffa24c Mon Sep 17 00:00:00 2001 From: Han Pingtian Date: Fri, 2 Mar 2012 17:28:39 +0800 Subject: remove useless call to setup_memory_ranges() in ppc64 setup_memory_ranges() is being called twice in ppc64. First in my_load() through get_memory_ranges(), then in elf_ppc64_load(). Looks like we can remove the latter. Signed-off-by: Simon Horman --- kexec/arch/ppc64/kexec-elf-ppc64.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kexec/arch/ppc64/kexec-elf-ppc64.c b/kexec/arch/ppc64/kexec-elf-ppc64.c index ab6da7c7..abd83dda 100644 --- a/kexec/arch/ppc64/kexec-elf-ppc64.c +++ b/kexec/arch/ppc64/kexec-elf-ppc64.c @@ -149,8 +149,6 @@ int elf_ppc64_load(int argc, char **argv, const char *buf, off_t len, if (ramdisk && reuse_initrd) die("Can't specify --ramdisk or --initrd with --reuseinitrd\n"); - setup_memory_ranges(info->kexec_flags); - /* Need to append some command line parameters internally in case of * taking crash dumps. */ -- cgit 1.2.3-korg