From: David Marchand Date: Wed, 4 Mar 2015 21:50:10 +0000 (+0100) Subject: eal: remove useless errno X-Git-Tag: spdx-start~9456 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=da0113c5390b51ec7247c2079135124431e0968f;p=dpdk.git eal: remove useless errno There is no remaining reference to E_RTE_NO_TAILQ. Signed-off-by: David Marchand Acked-by: Neil Horman --- diff --git a/app/test/test_errno.c b/app/test/test_errno.c index c903b196fc..f221eac73d 100644 --- a/app/test/test_errno.c +++ b/app/test/test_errno.c @@ -58,7 +58,7 @@ test_errno(void) /* use a small selection of standard errors for testing */ int std_errs[] = {EAGAIN, EBADF, EACCES, EINTR, EINVAL}; /* test ALL registered RTE error codes for overlap */ - int rte_errs[] = {E_RTE_SECONDARY, E_RTE_NO_CONFIG, E_RTE_NO_TAILQ}; + int rte_errs[] = {E_RTE_SECONDARY, E_RTE_NO_CONFIG}; unsigned i; rte_errno = 0; diff --git a/lib/librte_eal/common/eal_common_errno.c b/lib/librte_eal/common/eal_common_errno.c index 259f89587f..de48d8e44c 100644 --- a/lib/librte_eal/common/eal_common_errno.c +++ b/lib/librte_eal/common/eal_common_errno.c @@ -64,8 +64,6 @@ rte_strerror(int errnum) return "Invalid call in secondary process"; case E_RTE_NO_CONFIG: return "Missing rte_config structure"; - case E_RTE_NO_TAILQ: - return "No TAILQ initialised"; default: strerror_r(errnum, RTE_PER_LCORE(retval), RETVAL_SZ); } diff --git a/lib/librte_eal/common/include/rte_errno.h b/lib/librte_eal/common/include/rte_errno.h index 45910cdcab..2e5cc454dc 100644 --- a/lib/librte_eal/common/include/rte_errno.h +++ b/lib/librte_eal/common/include/rte_errno.h @@ -84,7 +84,6 @@ enum { E_RTE_SECONDARY, /**< Operation not allowed in secondary processes */ E_RTE_NO_CONFIG, /**< Missing rte_config */ - E_RTE_NO_TAILQ, /**< Uninitialised TAILQ */ RTE_MAX_ERRNO /**< Max RTE error number */ };