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:
parent
0a85eaad05
commit
8e51f36bbf
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue