kernel: version: no need to store version in RAM

This is a build-time constant, just return it.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2017-09-07 12:01:43 -07:00 committed by Andrew Boie
commit 8e51f36bbf

View file

@ -9,8 +9,6 @@
#include <zephyr/types.h>
#include "version.h" /* generated by MAKE, at compile time */
static u32_t kernel_version = KERNELVERSION;
/**
*
* @brief Return the kernel version of the present build
@ -22,5 +20,5 @@ static u32_t kernel_version = KERNELVERSION;
*/
u32_t sys_kernel_version_get(void)
{
return kernel_version;
return KERNELVERSION;
}