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; ^~~~~~ Cc: Simon Horman <horms@xxxxxxxxxxxx> Signed-off-by: Bhupesh Sharma <bhsharma@xxxxxxxxxx> --- 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 7eaab0c..b839d59 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) { -- 2.17.1 _______________________________________________ kexec mailing list kexec@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/kexec