]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: hns3: remove two unused macros in hclgevf_cmd.c
authorHuazhong Tan <tanhuazhong@huawei.com>
Sat, 30 May 2020 01:08:29 +0000 (09:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2020 00:41:22 +0000 (17:41 -0700)
Macro hclgevf_ring_to_dma_dir and hclgevf_is_csq defined in
hclgevf_cmd.c, but not used, so remove them.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c

index f38d236ebf4fc20adee647b6cf82cfc61eda96f5..fec65239a3c8b0219da8fbaa816761038adb8d2d 100644 (file)
@@ -11,9 +11,6 @@
 #include "hclgevf_main.h"
 #include "hnae3.h"
 
-#define hclgevf_is_csq(ring) ((ring)->flag & HCLGEVF_TYPE_CSQ)
-#define hclgevf_ring_to_dma_dir(ring) (hclgevf_is_csq(ring) ? \
-                                       DMA_TO_DEVICE : DMA_FROM_DEVICE)
 #define cmq_ring_to_dev(ring)   (&(ring)->dev->pdev->dev)
 
 static int hclgevf_ring_space(struct hclgevf_cmq_ring *ring)