mirror of
https://github.com/dynup/kpatch
synced 2025-04-26 21:17:57 +00:00
invert logic to reduce indentation
No functional change. Signed-off-by: Seth Jennings <sjenning@redhat.com>
This commit is contained in:
parent
d79046c295
commit
870b6fb95b
@ -1615,7 +1615,8 @@ void kpatch_create_dynamic_rela_sections(struct kpatch_elf *kelf,
|
|||||||
list_for_each_entry_safe(rela, safe, &sec2->relas, list) {
|
list_for_each_entry_safe(rela, safe, &sec2->relas, list) {
|
||||||
if (lookup_is_exported_symbol(table, rela->sym->name))
|
if (lookup_is_exported_symbol(table, rela->sym->name))
|
||||||
continue;
|
continue;
|
||||||
if (!rela->sym->sec) {
|
if (rela->sym->sec)
|
||||||
|
continue;
|
||||||
if (rela->sym->bind == STB_LOCAL) {
|
if (rela->sym->bind == STB_LOCAL) {
|
||||||
if (lookup_local_symbol(table, rela->sym->name,
|
if (lookup_local_symbol(table, rela->sym->name,
|
||||||
hint, &result))
|
hint, &result))
|
||||||
@ -1660,7 +1661,6 @@ void kpatch_create_dynamic_rela_sections(struct kpatch_elf *kelf,
|
|||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* set size to actual number of dynrelas */
|
/* set size to actual number of dynrelas */
|
||||||
sec->data->d_size = index * sizeof(struct kpatch_dynrela);
|
sec->data->d_size = index * sizeof(struct kpatch_dynrela);
|
||||||
|
Loading…
Reference in New Issue
Block a user