net: sis: Fix a function name in comments
authorCai Huoqing <caihuoqing@baidu.com>
Sat, 25 Sep 2021 13:40:12 +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/sis/sis190.c

index 3d1a18a..be4d772 100644 (file)
@@ -1070,7 +1070,7 @@ static int sis190_open(struct net_device *dev)
 
        /*
         * Rx and Tx descriptors need 256 bytes alignment.
-        * pci_alloc_consistent() guarantees a stronger alignment.
+        * dma_alloc_coherent() guarantees a stronger alignment.
         */
        tp->TxDescRing = dma_alloc_coherent(&pdev->dev, TX_RING_BYTES,
                                            &tp->tx_dma, GFP_KERNEL);