net: hns3: Remove unused struct member and definition
authorJian Shen <shenjian15@huawei.com>
Thu, 19 Jul 2018 14:47:05 +0000 (15:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Jul 2018 15:44:23 +0000 (08:44 -0700)
The struct hclge_desc_cb and hclge_desc_cb are never used in
anywhere. This patch removes them.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h

index 54e199d1592c6743e2404f29ff8afcb37a33e3d1..66a534a9c0e26cf163d254dfa1bc73e506eb7d13 100644 (file)
@@ -27,16 +27,9 @@ struct hclge_desc {
        __le32 data[6];
 };
 
-struct hclge_desc_cb {
-       dma_addr_t dma;
-       void *va;
-       u32 length;
-};
-
 struct hclge_cmq_ring {
        dma_addr_t desc_dma_addr;
        struct hclge_desc *desc;
-       struct hclge_desc_cb *desc_cb;
        struct hclge_dev *dev;
        u32 head;
        u32 tail;
index a1ed6df444f9b9c5895c43291d4396930dbb187a..7d4845ea487cf088d406a46a0ff79a05d19575d9 100644 (file)
@@ -140,12 +140,6 @@ enum hclge_evt_cause {
 };
 
 #define HCLGE_MPF_ENBALE 1
-struct hclge_caps {
-       u16 num_tqp;
-       u16 num_buffer_cell;
-       u32 flag;
-       u16 vmdq;
-};
 
 enum HCLGE_MAC_SPEED {
        HCLGE_MAC_SPEED_10M     = 10,           /* 10 Mbps */
@@ -191,7 +185,6 @@ struct hclge_hw {
        struct hclge_mac mac;
        int num_vec;
        struct hclge_cmq cmq;
-       struct hclge_caps caps;
 };
 
 /* TQP stats */