Remove casting the values returned by dma_alloc_coherent.
Signed-off-by: Xu Wang <[email protected]>
---
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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) {
--
2.17.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 <[email protected]>
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.