summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBhupesh Sharma <bhsharma@redhat.com>2019-09-10 15:51:50 +0530
committerSimon Horman <horms@verge.net.au>2019-09-16 09:17:14 +0200
commited2d6e31a02da3d2e69cf022071db0964992c30b (patch)
tree3f7963523fb5ba72a98e964a54ca7a464e7953c1
parenta46c686f615a86933134c0924c3391ba598a02b8 (diff)
downloadkexec-tools-ed2d6e31a02da3d2e69cf022071db0964992c30b.tar.gz
i386/kexec-mb2-x86.c: Fix compilation warning
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 <bhsharma@redhat.com> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/arch/i386/kexec-mb2-x86.c2
1 files changed, 0 insertions, 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) {