summaryrefslogtreecommitdiff
path: root/drivers/baseband
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/baseband
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/baseband')
-rw-r--r--drivers/baseband/null/bbdev_null.c4
-rw-r--r--drivers/baseband/turbo_sw/bbdev_turbo_software.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/drivers/baseband/null/bbdev_null.c b/drivers/baseband/null/bbdev_null.c
index 76fc9d7..2f25151 100644
--- a/drivers/baseband/null/bbdev_null.c
+++ b/drivers/baseband/null/bbdev_null.c
@@ -348,9 +348,7 @@ RTE_PMD_REGISTER_PARAM_STRING(DRIVER_NAME,
BBDEV_NULL_SOCKET_ID_ARG"=<int>");
RTE_PMD_REGISTER_ALIAS(DRIVER_NAME, bbdev_null);
-RTE_INIT(null_bbdev_init_log);
-static void
-null_bbdev_init_log(void)
+RTE_INIT(null_bbdev_init_log)
{
bbdev_null_logtype = rte_log_register("pmd.bb.null");
if (bbdev_null_logtype >= 0)
diff --git a/drivers/baseband/turbo_sw/bbdev_turbo_software.c b/drivers/baseband/turbo_sw/bbdev_turbo_software.c
index 05e95ed..1a2430e 100644
--- a/drivers/baseband/turbo_sw/bbdev_turbo_software.c
+++ b/drivers/baseband/turbo_sw/bbdev_turbo_software.c
@@ -1299,9 +1299,7 @@ RTE_PMD_REGISTER_PARAM_STRING(DRIVER_NAME,
TURBO_SW_SOCKET_ID_ARG"=<int>");
RTE_PMD_REGISTER_ALIAS(DRIVER_NAME, turbo_sw);
-RTE_INIT(null_bbdev_init_log);
-static void
-null_bbdev_init_log(void)
+RTE_INIT(turbo_sw_bbdev_init_log)
{
bbdev_turbo_sw_logtype = rte_log_register("pmd.bb.turbo_sw");
if (bbdev_turbo_sw_logtype >= 0)