提交 f947fcaf 编写于 作者: C Cai Huoqing 提交者: David S. Miller

net: cisco: 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: NCai Huoqing <caihuoqing@baidu.com>
Reviewed-by: NGovindarajulu Varadarajan <gvaradar@cisco.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 2b73e209
...@@ -139,7 +139,7 @@ static void enic_get_drvinfo(struct net_device *netdev, ...@@ -139,7 +139,7 @@ static void enic_get_drvinfo(struct net_device *netdev,
int err; int err;
err = enic_dev_fw_info(enic, &fw_info); err = enic_dev_fw_info(enic, &fw_info);
/* return only when pci_zalloc_consistent fails in vnic_dev_fw_info /* return only when dma_alloc_coherent fails in vnic_dev_fw_info
* For other failures, like devcmd failure, we return previously * For other failures, like devcmd failure, we return previously
* recorded info. * recorded info.
*/ */
...@@ -270,7 +270,7 @@ static void enic_get_ethtool_stats(struct net_device *netdev, ...@@ -270,7 +270,7 @@ static void enic_get_ethtool_stats(struct net_device *netdev,
int err; int err;
err = enic_dev_stats_dump(enic, &vstats); err = enic_dev_stats_dump(enic, &vstats);
/* return only when pci_zalloc_consistent fails in vnic_dev_stats_dump /* return only when dma_alloc_coherent fails in vnic_dev_stats_dump
* For other failures, like devcmd failure, we return previously * For other failures, like devcmd failure, we return previously
* recorded stats. * recorded stats.
*/ */
......
...@@ -882,7 +882,7 @@ static void enic_get_stats(struct net_device *netdev, ...@@ -882,7 +882,7 @@ static void enic_get_stats(struct net_device *netdev,
int err; int err;
err = enic_dev_stats_dump(enic, &stats); err = enic_dev_stats_dump(enic, &stats);
/* return only when pci_zalloc_consistent fails in vnic_dev_stats_dump /* return only when dma_alloc_coherent fails in vnic_dev_stats_dump
* For other failures, like devcmd failure, we return previously * For other failures, like devcmd failure, we return previously
* recorded stats. * recorded stats.
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册