mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
bpftool: remove function free_btf_vmlinux()
The function contains a single btf__free() call which can be inlined. Credits to Yonghong Song. Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com> Acked-by: Yonghong Song <yhs@fb.com> Suggested-by: Yonghong Song <yhs@fb.com> Reviewed-by: Quentin Monnet <quentin@isovalent.com> Link: https://lore.kernel.org/r/20221120112515.38165-6-sahid.ferdjaoui@industrialdiscipline.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
parent
d1313e0127
commit
52df1a8aab
1 changed files with 1 additions and 6 deletions
|
@ -811,11 +811,6 @@ static void free_map_kv_btf(struct btf *btf)
|
||||||
btf__free(btf);
|
btf__free(btf);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void free_btf_vmlinux(void)
|
|
||||||
{
|
|
||||||
btf__free(btf_vmlinux);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
map_dump(int fd, struct bpf_map_info *info, json_writer_t *wtr,
|
map_dump(int fd, struct bpf_map_info *info, json_writer_t *wtr,
|
||||||
bool show_header)
|
bool show_header)
|
||||||
|
@ -952,7 +947,7 @@ exit_close:
|
||||||
close(fds[i]);
|
close(fds[i]);
|
||||||
exit_free:
|
exit_free:
|
||||||
free(fds);
|
free(fds);
|
||||||
free_btf_vmlinux();
|
btf__free(btf_vmlinux);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue