summaryrefslogtreecommitdiff
path: root/drivers/net/kni/rte_eth_kni.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/kni/rte_eth_kni.c')
-rw-r--r--drivers/net/kni/rte_eth_kni.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/kni/rte_eth_kni.c b/drivers/net/kni/rte_eth_kni.c
index 04cab24..b038fbf 100644
--- a/drivers/net/kni/rte_eth_kni.c
+++ b/drivers/net/kni/rte_eth_kni.c
@@ -488,9 +488,7 @@ static struct rte_vdev_driver eth_kni_drv = {
RTE_PMD_REGISTER_VDEV(net_kni, eth_kni_drv);
RTE_PMD_REGISTER_PARAM_STRING(net_kni, ETH_KNI_NO_REQUEST_THREAD_ARG "=<int>");
-RTE_INIT(eth_kni_init_log);
-static void
-eth_kni_init_log(void)
+RTE_INIT(eth_kni_init_log)
{
eth_kni_logtype = rte_log_register("pmd.net.kni");
if (eth_kni_logtype >= 0)