]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
cross-tree: phase out dma_zalloc_coherent()
[thirdparty/linux.git] / drivers / net / ethernet / hisilicon / hns3 / hns3_enet.c
index 07cd58798083cfce90afbaf8f545cef1c760d763..1bf7a5f116a09a4cf211e25e3501ec9cd9d29774 100644 (file)
@@ -2041,9 +2041,8 @@ static int hns3_alloc_desc(struct hns3_enet_ring *ring)
 {
        int size = ring->desc_num * sizeof(ring->desc[0]);
 
-       ring->desc = dma_zalloc_coherent(ring_to_dev(ring), size,
-                                        &ring->desc_dma_addr,
-                                        GFP_KERNEL);
+       ring->desc = dma_alloc_coherent(ring_to_dev(ring), size,
+                                       &ring->desc_dma_addr, GFP_KERNEL);
        if (!ring->desc)
                return -ENOMEM;