diff options
author | Han Pingtian <hanpt@linux.vnet.ibm.com> | 2012-03-02 17:28:39 +0800 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2012-03-03 07:50:21 +0700 |
commit | edf4bc36d8be78c97b7fcaece0987ba820ffa24c (patch) | |
tree | e7b45265a6ce993839d3ad6ee40158a74e888342 | |
parent | 37737527725e465833be649101c4a6f8352c5d5e (diff) | |
download | kexec-tools-edf4bc36d8be78c97b7fcaece0987ba820ffa24c.tar.gz |
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 <horms@verge.net.au>
-rw-r--r-- | kexec/arch/ppc64/kexec-elf-ppc64.c | 2 |
1 files changed, 0 insertions, 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. */ |