net: broadcom: Fix a function name in comments
authorCai Huoqing <caihuoqing@baidu.com>
Sat, 25 Sep 2021 13:40:11 +0000 (21:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2021 11:44:33 +0000 (12:44 +0100)
Use dma_alloc_coherent() instead of pci_alloc_consistent(),
because only dma_alloc_coherent() is called here.

Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/b44.c

index fa78495..38b4654 100644 (file)
@@ -1200,7 +1200,7 @@ static int b44_alloc_consistent(struct b44 *bp, gfp_t gfp)
        bp->rx_ring = dma_alloc_coherent(bp->sdev->dma_dev, size,
                                         &bp->rx_ring_dma, gfp);
        if (!bp->rx_ring) {
-               /* Allocation may have failed due to pci_alloc_consistent
+               /* Allocation may have failed due to dma_alloc_coherent
                   insisting on use of GFP_DMA, which is more restrictive
                   than necessary...  */
                struct dma_desc *rx_ring;