aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-06-19 15:54:05 +0100
committerMatt Fleming <matt.fleming@intel.com>2013-06-19 15:54:05 +0100
commit2aa4fee2cdf94f909a8c8a6b6b56abdc2e5e7afd (patch)
treedb8cd074d6d94a836a849ec722f0cf5f71fdd678 /com32/lib
parent66e6bb833a3ee09b517a11561d02ca04061ec58e (diff)
downloadsyslinux-2aa4fee2cdf94f909a8c8a6b6b56abdc2e5e7afd.tar.gz
syslinux-2aa4fee2cdf94f909a8c8a6b6b56abdc2e5e7afd.tar.xz
syslinux-2aa4fee2cdf94f909a8c8a6b6b56abdc2e5e7afd.zip
load_linux: return a non-void value to fix compiler warning
->boot_linux() actually returns an error value, so return it to the caller of syslinux_boot_linux() and fix the following compiler warning, com32/lib/syslinux/load_linux.c: In function ‘syslinux_boot_linux’: com32/lib/syslinux/load_linux.c:527:1: warning: control reaches end of non-void function [-Wreturn-type] Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/lib')
-rw-r--r--com32/lib/syslinux/load_linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/lib/syslinux/load_linux.c b/com32/lib/syslinux/load_linux.c
index f6e03f76..120c69b4 100644
--- a/com32/lib/syslinux/load_linux.c
+++ b/com32/lib/syslinux/load_linux.c
@@ -522,6 +522,6 @@ int syslinux_boot_linux(void *kernel_buf, size_t kernel_size,
return -1;
}
- firmware->boot_linux(kernel_buf, kernel_size, initramfs,
- setup_data, cmdline);
+ return firmware->boot_linux(kernel_buf, kernel_size, initramfs,
+ setup_data, cmdline);
}