syscall: Return bool in a boolean function

MISRA-C rule 14.4

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2018-11-21 17:46:38 -08:00 committed by Anas Nashif
commit 0bf21ca2a9
4 changed files with 14 additions and 10 deletions

View file

@ -10,6 +10,7 @@
#include <syscall_list.h>
#include <arch/syscall.h>
#include <stdbool.h>
#ifndef _ASMLANGUAGE
#include <zephyr/types.h>
@ -117,16 +118,16 @@ typedef u32_t (*_k_syscall_handler_t)(u32_t arg1, u32_t arg2, u32_t arg3,
/**
* Indicate whether we are currently running in user mode
*
* @return nonzero if the CPU is currently running with user permissions
* @return true if the CPU is currently running with user permissions
*/
static inline int _arch_is_user_context(void);
static inline bool _arch_is_user_context(void);
/**
* Indicate whether the CPU is currently in user mode
*
* @return nonzero if the CPU is currently running with user permissions
* @return true if the CPU is currently running with user permissions
*/
static inline int _is_user_context(void)
static inline bool _is_user_context(void)
{
return _arch_is_user_context();
}