summaryrefslogtreecommitdiff
path: root/drivers/net/netvsc/hn_ethdev.c
diff options
context:
space:
mode:
authorThomas Monjalon <thomas@monjalon.net>2018-10-28 11:47:47 +0100
committerThomas Monjalon <thomas@monjalon.net>2018-11-01 22:38:00 +0100
commitdf285f0e6529401fa8c33e00b1b8f889458dd18b (patch)
tree15094173be86795556fd514f949d09092879da88 /drivers/net/netvsc/hn_ethdev.c
parent4d4c612e6a3021c9d0faa7768919c588021af230 (diff)
downloaddpdk-df285f0e6529401fa8c33e00b1b8f889458dd18b.zip
dpdk-df285f0e6529401fa8c33e00b1b8f889458dd18b.tar.gz
dpdk-df285f0e6529401fa8c33e00b1b8f889458dd18b.tar.xz
drivers: remove useless constructor headers
A constructor is usually declared with RTE_INIT* macros. As it is a static function, no need to declare before its definition. The macro is used directly in the function definition. Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Diffstat (limited to 'drivers/net/netvsc/hn_ethdev.c')
-rw-r--r--drivers/net/netvsc/hn_ethdev.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c
index aa38ee7..b330bf3 100644
--- a/drivers/net/netvsc/hn_ethdev.c
+++ b/drivers/net/netvsc/hn_ethdev.c
@@ -879,9 +879,7 @@ static struct rte_vmbus_driver rte_netvsc_pmd = {
RTE_PMD_REGISTER_VMBUS(net_netvsc, rte_netvsc_pmd);
RTE_PMD_REGISTER_KMOD_DEP(net_netvsc, "* uio_hv_generic");
-RTE_INIT(hn_init_log);
-static void
-hn_init_log(void)
+RTE_INIT(hn_init_log)
{
hn_logtype_init = rte_log_register("pmd.net.netvsc.init");
if (hn_logtype_init >= 0)