Commit 06953ea4 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Andrei Vagin

compel handle_elf(): use continue

This is just to avoid a level of code block nesting/indentation
that can easily be avoided.
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 4dd92a5b
...@@ -233,7 +233,9 @@ int __handle_elf(void *mem, size_t size) ...@@ -233,7 +233,9 @@ int __handle_elf(void *mem, size_t size)
name = &symstrings[sym->st_name]; name = &symstrings[sym->st_name];
ptr_func_exit(name); ptr_func_exit(name);
if (*name) { if (!*name)
continue;
pr_debug("\ttype 0x%-2x bind 0x%-2x shndx 0x%-4x value 0x%-2lx name %s\n", pr_debug("\ttype 0x%-2x bind 0x%-2x shndx 0x%-4x value 0x%-2lx name %s\n",
(unsigned)ELF_ST_TYPE(sym->st_info), (unsigned)ELF_ST_BIND(sym->st_info), (unsigned)ELF_ST_TYPE(sym->st_info), (unsigned)ELF_ST_BIND(sym->st_info),
(unsigned)sym->st_shndx, (unsigned long)sym->st_value, name); (unsigned)sym->st_shndx, (unsigned long)sym->st_value, name);
...@@ -263,7 +265,6 @@ int __handle_elf(void *mem, size_t size) ...@@ -263,7 +265,6 @@ int __handle_elf(void *mem, size_t size)
(sh_src ? sh_src->sh_addr : 0))); (sh_src ? sh_src->sh_addr : 0)));
} }
} }
}
pr_out("static __maybe_unused compel_reloc_t %s_relocs[] = {\n", opts.prefix); pr_out("static __maybe_unused compel_reloc_t %s_relocs[] = {\n", opts.prefix);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment