diff options
Diffstat (limited to 'utils/keytable/bpf_load.c')
-rw-r--r-- | utils/keytable/bpf_load.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/keytable/bpf_load.c b/utils/keytable/bpf_load.c index 818dedef..9f64cf4e 100644 --- a/utils/keytable/bpf_load.c +++ b/utils/keytable/bpf_load.c @@ -266,7 +266,7 @@ static int parse_relo_and_apply(struct bpf_file *bpf_file, GElf_Shdr *shdr, insn_idx); return 1; } - else if (sym.st_shndx == bpf_file->dataidx || sym.st_shndx == bpf_file->bssidx) { + if (sym.st_shndx == bpf_file->dataidx || sym.st_shndx == bpf_file->bssidx) { const char *raw = NULL; int value = 0; @@ -310,10 +310,10 @@ static int cmp_symbols(const void *l, const void *r) if (lsym->st_value < rsym->st_value) return -1; - else if (lsym->st_value > rsym->st_value) + if (lsym->st_value > rsym->st_value) return 1; - else - return 0; + + return 0; } static int load_elf_maps_section(struct bpf_file *bpf_file) |