summaryrefslogtreecommitdiff
path: root/drivers/net/ring
diff options
context:
space:
mode:
authorThomas Monjalon <thomas@monjalon.net>2018-06-18 14:32:21 +0200
committerThomas Monjalon <thomas@monjalon.net>2018-07-12 00:00:35 +0200
commitf8e9989606e7a9548a25ac10e2daae4c8af230cb (patch)
tree82a34401e981ca767137654a925dc9d4576a350a /drivers/net/ring
parent250c9eb3ca895127f21a729caf4a928eb2f04d2c (diff)
downloaddpdk-next-eventdev-f8e9989606e7a9548a25ac10e2daae4c8af230cb.zip
dpdk-next-eventdev-f8e9989606e7a9548a25ac10e2daae4c8af230cb.tar.gz
dpdk-next-eventdev-f8e9989606e7a9548a25ac10e2daae4c8af230cb.tar.xz
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/ring')
-rw-r--r--drivers/net/ring/rte_eth_ring.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c
index 5aa48da..791deb0 100644
--- a/drivers/net/ring/rte_eth_ring.c
+++ b/drivers/net/ring/rte_eth_ring.c
@@ -685,9 +685,7 @@ RTE_PMD_REGISTER_ALIAS(net_ring, eth_ring);
RTE_PMD_REGISTER_PARAM_STRING(net_ring,
ETH_RING_NUMA_NODE_ACTION_ARG "=name:node:action(ATTACH|CREATE)");
-RTE_INIT(eth_ring_init_log);
-static void
-eth_ring_init_log(void)
+RTE_INIT(eth_ring_init_log)
{
eth_ring_logtype = rte_log_register("pmd.net.ring");
if (eth_ring_logtype >= 0)