net: hns3: remove unused member in struct hns3_enet_ring
authorHuazhong Tan <tanhuazhong@huawei.com>
Fri, 18 Jan 2019 08:13:04 +0000 (16:13 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jan 2019 23:10:21 +0000 (15:10 -0800)
The irq_init_flag field in struct hns3_enet_ring is unnecessary.
This patch removes it.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h

index e0621ef7098425574c3bdf56444438a458f7f2a2..c6f2d72a5e6f63745fcdd4f0a1d7fb9e9697486e 100644 (file)
@@ -3208,7 +3208,6 @@ static int hns3_nic_uninit_vector_data(struct hns3_nic_priv *priv)
                        tqp_vector->irq_init_flag = HNS3_VECTOR_NOT_INITED;
                }
 
-               priv->ring_data[i].ring->irq_init_flag = HNS3_VECTOR_NOT_INITED;
                hns3_clear_ring_group(&tqp_vector->rx_group);
                hns3_clear_ring_group(&tqp_vector->tx_group);
                netif_napi_del(&priv->tqp_vector[i].napi);
index e55995e93bb08fbaabf077b75607cda9c2c04146..f59ab7387b1f5823427e31cff5c814c6ba5be285 100644 (file)
@@ -412,7 +412,6 @@ struct hns3_enet_ring {
        unsigned char *va; /* first buffer address for current packet */
 
        u32 flag;          /* ring attribute */
-       int irq_init_flag;
 
        int numa_node;
        cpumask_t affinity_mask;