Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2380927pxb; Sat, 25 Sep 2021 05:51:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeRbC1j7gpTWhu+fbb11VciODk9MP2NHYY8bva1btVr3WTZ0eNJ3G3FrwORyIRgNof+au5 X-Received: by 2002:a05:6402:21ea:: with SMTP id ce10mr5283544edb.328.1632574278230; Sat, 25 Sep 2021 05:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632574278; cv=none; d=google.com; s=arc-20160816; b=N0dtXrCQBjXbEh123BhtnaouYSGfH/RrPv6f2gHlpjLyPhwfTooA7Jtc8Ama7G3+3+ 4mpvtvZ9ZN3bEjyBY1I2xjejkFkzi+qxsUgPXjT+lXNJLbAyP4ZBQjG2KzUdKkmPjY5L CPc11H56d+w0p5JRlkGwFU+bbIaws697/ECqVMbt6UmQ3xpkhLYYuZ+PRbRj1KShRY36 y1mP/hylTvprOUV35Jv/Nb5WuG3Ss1xNQuMa3HmO72qsp4qowAu7R0rU0DQMSBgUs1p+ niP9KFz+g0fwWFqrXJD2Pj0hrgSxuzPCXxaJy6BS38LxzHy9d1FTNwnqlt+dqHLajFRY iqWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=ZoCfMQL+6HAqtrkZz3AOCNlZjTRievU8MeNzO7VZ7ms=; b=JTI6ZyL6lcFqNdx6KFGXct0VlCsmwEztMVS4KhlTVI+qH/Wp80f5TyR5ZewRfzzCnK GM6J/bjeV/VftrP0HGG6FlHgLv0p7L8evRQ1td4GsfC7oLVRmaLlq7Qt9YkztCIFBskj BqZOhfUOKAImSYAIcrFtbftYGPHaHtrnQPMtQ9LB+l4avzUV8Gyx/5lFCwSCj+8NWst1 0EddsflmknNwtAhvtr3DNPYhddXje7teEiFX43JGwEICF8KZI6NTOjvZyOXrJcY1ilA+ lE9JkGpMc4UbJ6iknewDBLwO9RVCin5BGf/VGL4svedYyC2MjQXk8dAaradUUrMeFi48 wV9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p11si11846653ejo.734.2021.09.25.05.50.54; Sat, 25 Sep 2021 05:51:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245152AbhIYMsN (ORCPT + 99 others); Sat, 25 Sep 2021 08:48:13 -0400 Received: from mx22.baidu.com ([220.181.50.185]:40176 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S244895AbhIYMsM (ORCPT ); Sat, 25 Sep 2021 08:48:12 -0400 Received: from BC-Mail-Ex06.internal.baidu.com (unknown [172.31.51.46]) by Forcepoint Email with ESMTPS id 63273A049C924F700576; Sat, 25 Sep 2021 20:46:35 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex06.internal.baidu.com (172.31.51.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Sat, 25 Sep 2021 20:46:35 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Sat, 25 Sep 2021 20:46:34 +0800 From: Cai Huoqing To: CC: Christian Benvenuti , Govindarajulu Varadarajan <_govind@gmx.com>, "David S. Miller" , Jakub Kicinski , , Subject: [PATCH] net: cisco: Fix a function name in comments Date: Sat, 25 Sep 2021 20:46:28 +0800 Message-ID: <20210925124629.250-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BJHW-Mail-Ex01.internal.baidu.com (10.127.64.11) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use dma_alloc_coherent() instead of pci_alloc_consistent(), because only dma_alloc_coherent() is called here. Signed-off-by: Cai Huoqing --- drivers/net/ethernet/cisco/enic/enic_ethtool.c | 4 ++-- drivers/net/ethernet/cisco/enic/enic_main.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/cisco/enic/enic_ethtool.c b/drivers/net/ethernet/cisco/enic/enic_ethtool.c index 12ffc14fbecd..6ded4d9fa32a 100644 --- a/drivers/net/ethernet/cisco/enic/enic_ethtool.c +++ b/drivers/net/ethernet/cisco/enic/enic_ethtool.c @@ -139,7 +139,7 @@ static void enic_get_drvinfo(struct net_device *netdev, int err; 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 * recorded info. */ @@ -270,7 +270,7 @@ static void enic_get_ethtool_stats(struct net_device *netdev, int err; 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 * recorded stats. */ diff --git a/drivers/net/ethernet/cisco/enic/enic_main.c b/drivers/net/ethernet/cisco/enic/enic_main.c index d0a8f7106958..13dbdd5d07b4 100644 --- a/drivers/net/ethernet/cisco/enic/enic_main.c +++ b/drivers/net/ethernet/cisco/enic/enic_main.c @@ -882,7 +882,7 @@ static void enic_get_stats(struct net_device *netdev, int err; 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 * recorded stats. */ -- 2.25.1