diff mbox series

net: qlcnic: remove casting dma_alloc_coherent

Message ID 20201211085920.85807-1-vulab@iscas.ac.cn
State New
Headers show
Series net: qlcnic: remove casting dma_alloc_coherent | expand

Commit Message

Xu Wang Dec. 11, 2020, 8:59 a.m. UTC
Remove casting the values returned by dma_alloc_coherent.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
---
 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jakub Kicinski Dec. 12, 2020, 9:40 p.m. UTC | #1
On Fri, 11 Dec 2020 08:59:20 +0000 Xu Wang wrote:
> Remove casting the values returned by dma_alloc_coherent.

> 

> Signed-off-by: Xu Wang <vulab@iscas.ac.cn>


This patch does not apply to net-next, please rebase against:

https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/

if you want it to be applied to the networking tree.
diff mbox series

Patch

diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c
index 87f76bac2e46..c263c7769444 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c
@@ -569,7 +569,7 @@  int qlcnic_alloc_hw_resources(struct qlcnic_adapter *adapter)
 
 	for (ring = 0; ring < adapter->drv_tx_rings; ring++) {
 		tx_ring = &adapter->tx_ring[ring];
-		ptr = (__le32 *)dma_alloc_coherent(&pdev->dev, sizeof(u32),
+		ptr = dma_alloc_coherent(&pdev->dev, sizeof(u32),
 					 &tx_ring->hw_cons_phys_addr,
 					 GFP_KERNEL);
 		if (ptr == NULL) {