rte_cryptodev_pmd_create_dev_name() has no caller. Drivers build
their device names directly.

Signed-off-by: Stephen Hemminger <[email protected]>
---
 lib/cryptodev/cryptodev_pmd.h |  2 --
 lib/cryptodev/rte_cryptodev.c | 24 ------------------------
 2 files changed, 26 deletions(-)

diff --git a/lib/cryptodev/cryptodev_pmd.h b/lib/cryptodev/cryptodev_pmd.h
index f1512f36c9..daecf66b3a 100644
--- a/lib/cryptodev/cryptodev_pmd.h
+++ b/lib/cryptodev/cryptodev_pmd.h
@@ -634,8 +634,6 @@ void rte_cryptodev_pmd_callback_process(struct 
rte_cryptodev *dev,
  * @internal
  * Create unique device name
  */
-int
-rte_cryptodev_pmd_create_dev_name(char *name, const char *dev_name_prefix);
 
 /**
  * @internal
diff --git a/lib/cryptodev/rte_cryptodev.c b/lib/cryptodev/rte_cryptodev.c
index 97121eaf37..4c8367d946 100644
--- a/lib/cryptodev/rte_cryptodev.c
+++ b/lib/cryptodev/rte_cryptodev.c
@@ -2886,30 +2886,6 @@ rte_crypto_op_pool_create(const char *name, enum 
rte_crypto_op_type type,
        return mp;
 }
 
-int
-rte_cryptodev_pmd_create_dev_name(char *name, const char *dev_name_prefix)
-{
-       struct rte_cryptodev *dev = NULL;
-       uint32_t i = 0;
-
-       if (name == NULL)
-               return -EINVAL;
-
-       for (i = 0; i < RTE_CRYPTO_MAX_DEVS; i++) {
-               int ret = snprintf(name, RTE_CRYPTODEV_NAME_MAX_LEN,
-                               "%s_%u", dev_name_prefix, i);
-
-               if (ret < 0)
-                       return ret;
-
-               dev = rte_cryptodev_pmd_get_named_dev(name);
-               if (!dev)
-                       return 0;
-       }
-
-       return -1;
-}
-
 TAILQ_HEAD(cryptodev_driver_list, cryptodev_driver);
 
 static struct cryptodev_driver_list cryptodev_driver_list =
-- 
2.53.0

Reply via email to