Skip to contentSkip to conversation

kexec:Remove unused local variable in get_kernel_page_offset()

PATCH Applied Kai Song 2 participants 2 messages Sep 23, 2021 – Sep 24, 2021

Subsystems (2)
lore
Share & tools
lore

Kai Song

author
#0 lore raw

PATCH 1/1 kexec:Remove unused local variable in get_kernel_page_offset()

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

---
 kexec/arch/i386/crashdump-x86.c | 1 -
 1 file changed, 1 deletion(-)
kexec/arch/i386/crashdump-x86.c +0 -1
index 81610dc..9826f6d 100644
@@ -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 */
Signature · 7 lines
2.27.0


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Applied
#1 lore raw
Quoted 12 lines · Kai Song

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

---
 kexec/arch/i386/crashdump-x86.c | 1 -
 1 file changed, 1 deletion(-)
kexec/arch/i386/crashdump-x86.c +0 -0
index 81610dc..9826f6d 100644

kexec/arch/i386/crashdump-x86.c extern struct arch_options_t arch_options; · line 57

Quoted 7 lines
kexec/arch/i386/crashdump-x86.c +0 -1
@@ -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 */

Thanks, applied.

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec