public inbox for kexec@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] kexec:Remove unused local variable in get_kernel_page_offset()
@ 2021-09-23  5:32 Kai Song
  2021-09-24 15:33 ` Simon Horman
  0 siblings, 1 reply; 2+ messages in thread
From: Kai Song @ 2021-09-23  5:32 UTC (permalink / raw)
  To: kexec; +Cc: horms, Kai Song

In get_kernel_page_offset(),the local variable kv is unused,remove it.

Signed-off-by: Kai Song <songkai01@inspur.com>
---
 kexec/arch/i386/crashdump-x86.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/kexec/arch/i386/crashdump-x86.c b/kexec/arch/i386/crashdump-x86.c
index 81610dc..9826f6d 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 */
-- 
2.27.0


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-24 15:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-23  5:32 [PATCH] kexec:Remove unused local variable in get_kernel_page_offset() Kai Song
2021-09-24 15:33 ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox