summaryrefslogtreecommitdiff
path: root/lib/librte_bpf/bpf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librte_bpf/bpf.c')
-rw-r--r--lib/librte_bpf/bpf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/librte_bpf/bpf.c b/lib/librte_bpf/bpf.c
index dc6d109..f590c8c 100644
--- a/lib/librte_bpf/bpf.c
+++ b/lib/librte_bpf/bpf.c
@@ -53,10 +53,7 @@ bpf_jit(struct rte_bpf *bpf)
return rc;
}
-RTE_INIT(rte_bpf_init_log);
-
-static void
-rte_bpf_init_log(void)
+RTE_INIT(rte_bpf_init_log)
{
rte_bpf_logtype = rte_log_register("lib.bpf");
if (rte_bpf_logtype >= 0)