drivers:net: Convert dma_alloc_coherent(...__GFP_ZERO) to dma_zalloc_coherent
[deliverable/linux.git] / drivers / net / ethernet / myricom / myri10ge / myri10ge.c
index 50a1d4a04eb010259ca5f33d34d92e877cc25e1b..149355b52ad0c8f2d4aac4f6cfe83041bc59f45b 100644 (file)
@@ -3783,9 +3783,9 @@ static int myri10ge_alloc_slices(struct myri10ge_priv *mgp)
        for (i = 0; i < mgp->num_slices; i++) {
                ss = &mgp->ss[i];
                bytes = mgp->max_intr_slots * sizeof(*ss->rx_done.entry);
-               ss->rx_done.entry = dma_alloc_coherent(&pdev->dev, bytes,
-                                                      &ss->rx_done.bus,
-                                                      GFP_KERNEL | __GFP_ZERO);
+               ss->rx_done.entry = dma_zalloc_coherent(&pdev->dev, bytes,
+                                                       &ss->rx_done.bus,
+                                                       GFP_KERNEL);
                if (ss->rx_done.entry == NULL)
                        goto abort;
                bytes = sizeof(*ss->fw_stats);
This page took 0.026536 seconds and 5 git commands to generate.