net: hns3: remove unused hclge_ring_to_dma_dir
hclge_ring_to_dma_dir is unused anywhere. This patch removes it. Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
50d4feb5e6
commit
5411b98421
|
@ -18,8 +18,7 @@
|
|||
#include "hclge_main.h"
|
||||
|
||||
#define hclge_is_csq(ring) ((ring)->flag & HCLGE_TYPE_CSQ)
|
||||
#define hclge_ring_to_dma_dir(ring) (hclge_is_csq(ring) ? \
|
||||
DMA_TO_DEVICE : DMA_FROM_DEVICE)
|
||||
|
||||
#define cmq_ring_to_dev(ring) (&(ring)->dev->pdev->dev)
|
||||
|
||||
static int hclge_ring_space(struct hclge_cmq_ring *ring)
|
||||
|
|
Loading…
Reference in New Issue