summaryrefslogtreecommitdiff
path: root/drivers/bus/dpaa
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/bus/dpaa
parent250c9eb3ca895127f21a729caf4a928eb2f04d2c (diff)
downloaddpdk-f8e9989606e7a9548a25ac10e2daae4c8af230cb.zip
dpdk-f8e9989606e7a9548a25ac10e2daae4c8af230cb.tar.gz
dpdk-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/bus/dpaa')
-rw-r--r--drivers/bus/dpaa/dpaa_bus.c4
-rw-r--r--drivers/bus/dpaa/rte_dpaa_bus.h3
2 files changed, 2 insertions, 5 deletions
diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c
index 2046206..af9e91e 100644
--- a/drivers/bus/dpaa/dpaa_bus.c
+++ b/drivers/bus/dpaa/dpaa_bus.c
@@ -626,9 +626,7 @@ struct rte_dpaa_bus rte_dpaa_bus = {
RTE_REGISTER_BUS(FSL_DPAA_BUS_NAME, rte_dpaa_bus.bus);
-RTE_INIT(dpaa_init_log);
-static void
-dpaa_init_log(void)
+RTE_INIT(dpaa_init_log)
{
dpaa_logtype_bus = rte_log_register("bus.dpaa");
if (dpaa_logtype_bus >= 0)
diff --git a/drivers/bus/dpaa/rte_dpaa_bus.h b/drivers/bus/dpaa/rte_dpaa_bus.h
index 8573bd6..15dc6a4 100644
--- a/drivers/bus/dpaa/rte_dpaa_bus.h
+++ b/drivers/bus/dpaa/rte_dpaa_bus.h
@@ -164,8 +164,7 @@ void dpaa_portal_finish(void *arg);
/** Helper for DPAA device registration from driver (eth, crypto) instance */
#define RTE_PMD_REGISTER_DPAA(nm, dpaa_drv) \
-RTE_INIT(dpaainitfn_ ##nm); \
-static void dpaainitfn_ ##nm(void) \
+RTE_INIT(dpaainitfn_ ##nm) \
{\
(dpaa_drv).driver.name = RTE_STR(nm);\
rte_dpaa_driver_register(&dpaa_drv); \