[dpdk-dev] [PATCH 4/5] net/hns3: delete unused macro of cmd module

Min Hu (Connor) humin29 at huawei.com
Wed Apr 28 09:20:54 CEST 2021


From: Chengwen Feng <fengchengwen at huawei.com>

The hns3_is_csq() and cmq_ring_to_dev() macro were defined in previous
version but never used.

Fixes:  737f30e1c3ab ("net/hns3: support command interface with firmware")
Cc: stable at dpdk.org

Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
Signed-off-by: Min Hu (Connor) <humin29 at huawei.com>
---
 drivers/net/hns3/hns3_cmd.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/net/hns3/hns3_cmd.c b/drivers/net/hns3/hns3_cmd.c
index 62dfc19..5beb3d9 100644
--- a/drivers/net/hns3/hns3_cmd.c
+++ b/drivers/net/hns3/hns3_cmd.c
@@ -10,10 +10,6 @@
 #include "hns3_intr.h"
 #include "hns3_logs.h"
 
-#define hns3_is_csq(ring) ((ring)->flag & HNS3_TYPE_CSQ)
-
-#define cmq_ring_to_dev(ring)   (&(ring)->dev->pdev->dev)
-
 static int
 hns3_ring_space(struct hns3_cmq_ring *ring)
 {
-- 
2.7.4



More information about the dev mailing list