invert logic to reduce indentation

No functional change.

Signed-off-by: Seth Jennings <sjenning@redhat.com>
This commit is contained in:
Seth Jennings 2014-06-02 15:19:39 -05:00
parent d79046c295
commit 870b6fb95b

View File

@ -1615,7 +1615,8 @@ void kpatch_create_dynamic_rela_sections(struct kpatch_elf *kelf,
list_for_each_entry_safe(rela, safe, &sec2->relas, list) {
if (lookup_is_exported_symbol(table, rela->sym->name))
continue;
if (!rela->sym->sec) {
if (rela->sym->sec)
continue;
if (rela->sym->bind == STB_LOCAL) {
if (lookup_local_symbol(table, rela->sym->name,
hint, &result))
@ -1660,7 +1661,6 @@ void kpatch_create_dynamic_rela_sections(struct kpatch_elf *kelf,
index++;
}
}
}
/* set size to actual number of dynrelas */
sec->data->d_size = index * sizeof(struct kpatch_dynrela);