summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Song <songkai01@inspur.com>2021-09-23 13:32:43 +0800
committerSimon Horman <horms@verge.net.au>2021-09-24 17:26:11 +0200
commit35dec3dbf9d6bbd725eb54bb9c9c3fe8b620b6d2 (patch)
treeeabb9e895069d9571dad36faad24b471ab280d4d
parentdbc151eaddc0ef2dbe1c56939dc36a78aad16abd (diff)
downloadkexec-tools-35dec3dbf9d6bbd725eb54bb9c9c3fe8b620b6d2.tar.gz
i386: Remove unused local variable in get_kernel_page_offset()
In get_kernel_page_offset(),the local variable kv is unused,remove it. Signed-off-by: Kai Song <songkai01@inspur.com> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/arch/i386/crashdump-x86.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kexec/arch/i386/crashdump-x86.c b/kexec/arch/i386/crashdump-x86.c
index 81610dc5..9826f6d1 100644
--- a/kexec/arch/i386/crashdump-x86.c
+++ b/kexec/arch/i386/crashdump-x86.c
@@ -52,7 +52,6 @@ extern struct arch_options_t arch_options;
static int get_kernel_page_offset(struct kexec_info *UNUSED(info),
struct crash_elf_info *elf_info)
{
- int kv;
if (elf_info->machine == EM_X86_64) {
/* get_kernel_vaddr_and_size will override this */