]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: hns3: remove unused field 'io_base' in struct hns3_enet_ring
authorHuazhong Tan <tanhuazhong@huawei.com>
Tue, 8 Sep 2020 02:59:51 +0000 (10:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Sep 2020 02:51:40 +0000 (19:51 -0700)
'io_base' has been defined and initialized, but never used,
so remove it.

Signed-off-by: Huazhong Tan <tanhuazhong@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 47ab2a5c7391d70ce2e7ec0cc08bbf5e2572f337..1d66f84aa8a20d09cee960451ffdc4b468a0cb01 100644 (file)
@@ -3670,12 +3670,10 @@ static void hns3_ring_get_cfg(struct hnae3_queue *q, struct hns3_nic_priv *priv,
                ring = &priv->ring[q->tqp_index];
                desc_num = priv->ae_handle->kinfo.num_tx_desc;
                ring->queue_index = q->tqp_index;
-               ring->io_base = (u8 __iomem *)q->io_base + HNS3_TX_REG_OFFSET;
        } else {
                ring = &priv->ring[q->tqp_index + queue_num];
                desc_num = priv->ae_handle->kinfo.num_rx_desc;
                ring->queue_index = q->tqp_index;
-               ring->io_base = q->io_base;
        }
 
        hnae3_set_bit(ring->flag, HNAE3_RING_TYPE_B, ring_type);
index 9922c5fd7f9499782b2415a731ea900382a5c063..0c146e7ff56bdca9e69584c85efdb20d4976f6c3 100644 (file)
@@ -380,7 +380,6 @@ struct ring_stats {
 };
 
 struct hns3_enet_ring {
-       u8 __iomem *io_base; /* base io address for the ring */
        struct hns3_desc *desc; /* dma map address space */
        struct hns3_desc_cb *desc_cb;
        struct hns3_enet_ring *next;