From: Haiyue Wang Date: Wed, 24 Jul 2019 00:52:25 +0000 (+0800) Subject: net/ice: remove type cast in Rx/Tx ring setup X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=84dd950a2f8dcf2f1fa058be6a9b106c515ac086;p=dpdk.git net/ice: remove type cast in Rx/Tx ring setup The memzone's start virtual address pointer (addr) is of type void *, no need to add type cast. Signed-off-by: Haiyue Wang Reviewed-by: Xiaolong Ye --- diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c index 3353f239d1..0282b5375b 100644 --- a/drivers/net/ice/ice_rxtx.c +++ b/drivers/net/ice/ice_rxtx.c @@ -664,7 +664,7 @@ ice_rx_queue_setup(struct rte_eth_dev *dev, memset(rz->addr, 0, ring_size); rxq->rx_ring_dma = rz->iova; - rxq->rx_ring = (union ice_rx_desc *)rz->addr; + rxq->rx_ring = rz->addr; #ifdef RTE_LIBRTE_ICE_RX_ALLOW_BULK_ALLOC len = (uint16_t)(nb_desc + ICE_RX_MAX_BURST); @@ -882,7 +882,7 @@ ice_tx_queue_setup(struct rte_eth_dev *dev, txq->tx_deferred_start = tx_conf->tx_deferred_start; txq->tx_ring_dma = tz->iova; - txq->tx_ring = (struct ice_tx_desc *)tz->addr; + txq->tx_ring = tz->addr; /* Allocate software ring */ txq->sw_ring =