summaryrefslogtreecommitdiff
path: root/drivers/common
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/common
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/common')
-rw-r--r--drivers/common/octeontx/octeontx_mbox.c4
-rw-r--r--drivers/common/qat/qat_logs.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/drivers/common/octeontx/octeontx_mbox.c b/drivers/common/octeontx/octeontx_mbox.c
index 93e6e85..880f8a4 100644
--- a/drivers/common/octeontx/octeontx_mbox.c
+++ b/drivers/common/octeontx/octeontx_mbox.c
@@ -61,9 +61,7 @@ struct mbox_ram_hdr {
int octeontx_logtype_mbox;
-RTE_INIT(otx_init_log);
-static void
-otx_init_log(void)
+RTE_INIT(otx_init_log)
{
octeontx_logtype_mbox = rte_log_register("pmd.octeontx.mbox");
if (octeontx_logtype_mbox >= 0)
diff --git a/drivers/common/qat/qat_logs.c b/drivers/common/qat/qat_logs.c
index fa3df85..7a86170 100644
--- a/drivers/common/qat/qat_logs.c
+++ b/drivers/common/qat/qat_logs.c
@@ -24,9 +24,7 @@ qat_hexdump_log(uint32_t level, uint32_t logtype, const char *title,
return 0;
}
-RTE_INIT(qat_pci_init_log);
-static void
-qat_pci_init_log(void)
+RTE_INIT(qat_pci_init_log)
{
/* Non-data-path logging for pci device and all services */
qat_gen_logtype = rte_log_register("pmd.qat_general");