From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id DA7142B8B for ; Thu, 17 Jan 2019 06:28:19 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Jan 2019 21:28:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,488,1539673200"; d="scan'208";a="292220437" Received: from dipei-st-npg.sh.intel.com ([10.67.110.220]) by orsmga005.jf.intel.com with ESMTP; 16 Jan 2019 21:28:17 -0800 From: Andy Pei To: dev@dpdk.org Cc: rosen.xu@intel.com, tianfei.zhang@intel.com, andy.pei@intel.com Date: Thu, 17 Jan 2019 13:26:17 +0800 Message-Id: <1547702777-186267-1-git-send-email-andy.pei@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1547530680-423006-1-git-send-email-andy.pei@intel.com> References: <1547530680-423006-1-git-send-email-andy.pei@intel.com> Subject: [dpdk-dev] [DPDK] raw/ifpga: fix a typo and delete code of unused function X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2019 05:28:20 -0000 fix a typo and delete code of unused function Cc: andy.pei@intel.com Cc: rosen.xu@intel.com Cc: tianfei.zhang@intel.com Signed-off-by: Andy Pei --- drivers/raw/ifpga_rawdev/base/opae_hw_api.c | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/drivers/raw/ifpga_rawdev/base/opae_hw_api.c b/drivers/raw/ifpga_rawdev/base/opae_hw_api.c index 50f6438..ea42757 100644 --- a/drivers/raw/ifpga_rawdev/base/opae_hw_api.c +++ b/drivers/raw/ifpga_rawdev/base/opae_hw_api.c @@ -304,7 +304,7 @@ static struct opae_adapter_ops *match_ops(struct opae_adapter *adapter) /** * opae_adapter_init - init opae_adapter data structure - * @adpdate: pointer of opae_adater data structure + * @adapter: pointer of opae_adater data structure * @name: adapter name. * @data: private data of this adapter. * @@ -325,28 +325,6 @@ int opae_adapter_init(struct opae_adapter *adapter, } /** - * opae_adapter_alloc - alloc opae_adapter data structure - * @name: adapter name. - * @data: private data of this adapter. - * - * Return: opae_adapter on success, otherwise NULL. - */ - /**This function will no longer be called. -struct opae_adapter *opae_adapter_alloc(const char *name, void *data) -{ - struct opae_adapter *adapter = opae_zmalloc(sizeof(*adapter)); - - if (!adapter) - return NULL; - - if (opae_adapter_init(adapter, name, data)) - return NULL; - - return adapter; -} -**/ - -/** * opae_adapter_enumerate - enumerate this adapter * @adapter: adapter to enumerate. * -- 1.8.3.1