x86/boot/compressed/64: Remove unused variable
authorZhenzhong Duan <zhenzhong.duan@oracle.com>
Tue, 16 Jul 2019 13:17:20 +0000 (21:17 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 18 Jul 2019 19:41:57 +0000 (21:41 +0200)
Fix gcc warning:

arch/x86/boot/compressed/pgtable_64.c: In function 'find_trampoline_placement':
arch/x86/boot/compressed/pgtable_64.c:43:16: warning: unused variable 'trampoline_start' [-Wunused-variable]
  unsigned long trampoline_start;
               ^

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Link: https://lkml.kernel.org/r/1563283040-31101-1-git-send-email-zhenzhong.duan@oracle.com
arch/x86/boot/compressed/pgtable_64.c

index f8debf7aeb4c144b286c8a12570cad23d46decc8..5f2d03067ae57cdb95555fe423bdafc52bbec200 100644 (file)
@@ -40,7 +40,6 @@ int cmdline_find_option_bool(const char *option);
 static unsigned long find_trampoline_placement(void)
 {
        unsigned long bios_start = 0, ebda_start = 0;
-       unsigned long trampoline_start;
        struct boot_e820_entry *entry;
        char *signature;
        int i;