From ed2d6e31a02da3d2e69cf022071db0964992c30b Mon Sep 17 00:00:00 2001 From: Bhupesh Sharma Date: Tue, 10 Sep 2019 15:51:50 +0530 Subject: i386/kexec-mb2-x86.c: Fix compilation warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch fixes the following compilation warning in 'i386/kexec-mb2-x86.c' regarding the variable 'result' which is set but not used: kexec/arch/i386/kexec-mb2-x86.c:402:6: warning: variable ‘result’ set but not used [-Wunused-but-set-variable] int result; ^~~~~~ Signed-off-by: Bhupesh Sharma Signed-off-by: Simon Horman --- kexec/arch/i386/kexec-mb2-x86.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kexec/arch/i386/kexec-mb2-x86.c b/kexec/arch/i386/kexec-mb2-x86.c index 7eaab0c0..b839d594 100644 --- a/kexec/arch/i386/kexec-mb2-x86.c +++ b/kexec/arch/i386/kexec-mb2-x86.c @@ -399,7 +399,6 @@ int multiboot2_x86_load(int argc, char **argv, const char *buf, off_t len, char *command_line = NULL, *tmp_cmdline = NULL; int command_line_len; char *imagename, *cp, *append = NULL;; - int result; int opt; int modules, mod_command_line_space; uint64_t mbi_ptr; @@ -429,7 +428,6 @@ int multiboot2_x86_load(int argc, char **argv, const char *buf, off_t len, command_line_len = 0; modules = 0; mod_command_line_space = 0; - result = 0; while((opt = getopt_long(argc, argv, short_options, options, 0)) != -1) { switch(opt) { -- cgit 1.2.3-korg