summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>2013-05-26 11:41:58 +0800
committerSimon Horman <horms@verge.net.au>2013-06-10 17:35:28 +0900
commit7cda46d53d4e6f7947d3a9bb9372911d81a7da3e (patch)
tree55ba4c9c374ad3d890020b4e3d20625fa71b5661
parent3016efb68309ceaecec10130594d2e929a3e2fb9 (diff)
kexec-tools: sh: Remove saved_max_mem
saved_max_mem is used to calculate the amount of memory that the previous kernel used. It seems in sh, we just calculate this variable, but we never use it. So remove it. Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/arch/sh/crashdump-sh.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/kexec/arch/sh/crashdump-sh.c b/kexec/arch/sh/crashdump-sh.c
index 68ca756..fe11b17 100644
--- a/kexec/arch/sh/crashdump-sh.c
+++ b/kexec/arch/sh/crashdump-sh.c
@@ -31,8 +31,6 @@
#define CRASH_MAX_MEMORY_RANGES 64
static struct memory_range crash_memory_range[CRASH_MAX_MEMORY_RANGES];
-uint64_t saved_max_mem;
-
static int crash_sh_range_nr;
static int crash_sh_memory_range_callback(void *UNUSED(data), int UNUSED(nr),
char *str,
@@ -54,9 +52,6 @@ static int crash_sh_memory_range_callback(void *UNUSED(data), int UNUSED(nr),
range->end = base + length - 1;
range->type = RANGE_RAM;
crash_sh_range_nr++;
-
- if (saved_max_mem < range->end)
- saved_max_mem = range->end;
}
if (strncmp(str, "Crash kernel\n", 13) == 0) {
@@ -80,7 +75,6 @@ static int crash_sh_memory_range_callback(void *UNUSED(data), int UNUSED(nr),
static int crash_get_memory_ranges(struct memory_range **range, int *ranges)
{
crash_sh_range_nr = 0;
- saved_max_mem = 0;
kexec_iomem_for_each_line(NULL, crash_sh_memory_range_callback, NULL);
*range = crash_memory_range;