From: Tianjia Zhang Date: Mon, 11 Jan 2021 03:04:51 +0000 (+0800) Subject: loader/i386/linux: Remove redundant code from in grub_cmd_linux() X-Git-Tag: grub-2.06-rc1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bcf0052981973dd39de5e0f66105c5a8348a1b2;p=thirdparty%2Fgrub.git loader/i386/linux: Remove redundant code from in grub_cmd_linux() The preferred_address has been assigned to GRUB_LINUX_BZIMAGE_ADDR during initialization in grub_cmd_linux(). The assignment here is redundant and should be removed. Signed-off-by: Tianjia Zhang Reviewed-by: Daniel Kiper --- diff --git a/grub-core/loader/i386/linux.c b/grub-core/loader/i386/linux.c index d7e68658f..0eea64a20 100644 --- a/grub-core/loader/i386/linux.c +++ b/grub-core/loader/i386/linux.c @@ -751,14 +751,11 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)), prot_init_space = page_align (prot_size); if (relocatable) preferred_address = grub_le_to_cpu64 (lh.pref_address); - else - preferred_address = GRUB_LINUX_BZIMAGE_ADDR; } else { min_align = align; prot_size = prot_file_size; - preferred_address = GRUB_LINUX_BZIMAGE_ADDR; /* Usually, the compression ratio is about 50%. */ prot_init_space = page_align (prot_size) * 3; }