aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaulo Alcantara <pcacjr@zytor.com>2012-07-05 03:36:04 -0300
committerPaulo Alcantara <pcacjr@zytor.com>2012-07-05 03:36:04 -0300
commit0bc1bf0ffd8d8cff581631995b02dabd1d463f4b (patch)
treea47d8d59b04854071b71f6c834fa85cd8600726f
parent1f822f83b3d757c9a72f1eb99ebd723ee61e625b (diff)
downloadsyslinux-0bc1bf0ffd8d8cff581631995b02dabd1d463f4b.tar.gz
syslinux-0bc1bf0ffd8d8cff581631995b02dabd1d463f4b.tar.xz
syslinux-0bc1bf0ffd8d8cff581631995b02dabd1d463f4b.zip
elf_module: Remove unused variable
This patch removes an unused variable and fixes the following warning: sys/module/elf_module.c: In function ‘module_load’: sys/module/elf_module.c:512:16: warning: variable ‘j’ set but not used [-Wunused-but-set-variable] Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
-rw-r--r--com32/lib/sys/module/elf_module.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/com32/lib/sys/module/elf_module.c b/com32/lib/sys/module/elf_module.c
index d8009aac..dbb5afed 100644
--- a/com32/lib/sys/module/elf_module.c
+++ b/com32/lib/sys/module/elf_module.c
@@ -509,15 +509,13 @@ int module_load(struct elf_module *module) {
* reverse order.
*/
for (i = module->nr_needed - 1; i >= 0; i--) {
- size_t len, j;
char *dep, *p;
char *argv[2] = { NULL, NULL };
dep = module->str_table + module->needed[i];
/* strip everything but the last component */
- j = len = strlen(dep);
- if (!len)
+ if (!strlen(dep))
continue;
if (strchr(dep, '/')) {