From: Cai Huoqing Date: Sat, 25 Sep 2021 13:40:12 +0000 (+0800) Subject: net: sis: Fix a function name in comments X-Git-Tag: v5.16-rc1~159^2~362 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e7e9d2088d9ce4c0c766cf9c3c26e3cc91f8bd33;p=thirdparty%2Flinux.git net: sis: Fix a function name in comments Use dma_alloc_coherent() instead of pci_alloc_consistent(), because only dma_alloc_coherent() is called here. Signed-off-by: Cai Huoqing Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/sis/sis190.c b/drivers/net/ethernet/sis/sis190.c index 3d1a18a01ce50..be4d772e68cfb 100644 --- a/drivers/net/ethernet/sis/sis190.c +++ b/drivers/net/ethernet/sis/sis190.c @@ -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);