eal: remove unneeded version logic
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 15 Mar 2019 18:20:22 +0000 (18:20 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 27 Mar 2019 08:43:54 +0000 (09:43 +0100)
The version number in the DPDK_VERSION file will never have an offset
that needs to be subtracted, so remove that logic from the version
string generation.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Luca Boccassi <bluca@debian.org>
lib/librte_eal/common/include/rte_version.h

index 50867ea..f7a3a1e 100644 (file)
@@ -57,9 +57,7 @@ rte_version(void)
                        RTE_VER_MONTH,
                        RTE_VER_MINOR,
                        RTE_VER_SUFFIX,
-                       RTE_VER_RELEASE < 16 ?
-                               RTE_VER_RELEASE :
-                               RTE_VER_RELEASE - 16);
+                       RTE_VER_RELEASE);
        return version;
 }