[PATCH] kexec:Remove unused local variable in get_kernel_page_offset()

Simon Horman horms at verge.net.au
Fri Sep 24 08:33:25 PDT 2021


On Thu, Sep 23, 2021 at 01:32:43PM +0800, Kai Song wrote:
> In get_kernel_page_offset(),the local variable kv is unused,remove it.
> 
> Signed-off-by: Kai Song <songkai01 at 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 */

Thanks, applied.



More information about the kexec mailing list