Skip to content

Commit

Permalink
net: sis: Fix a function name in comments
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cai Huoqing authored and David S. Miller committed Sep 27, 2021
1 parent 8b58cba commit e7e9d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/sis/sis190.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e7e9d20

Please sign in to comment.