kernel: Change k_is_in_isr to return bool

Change this function to return a boolean type.

MISRA-C rule 14.4

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2018-12-17 12:40:22 -08:00 committed by Anas Nashif
commit 6a4a86e413
2 changed files with 4 additions and 4 deletions

View file

@ -1110,10 +1110,10 @@ extern void k_sched_time_slice_set(s32_t slice, int prio);
*
* @note Can be called by ISRs.
*
* @return 0 if invoked by a thread.
* @return Non-zero if invoked by an ISR.
* @return false if invoked by a thread.
* @return true if invoked by an ISR.
*/
extern int k_is_in_isr(void);
extern bool k_is_in_isr(void);
/**
* @brief Determine if code is running in a preemptible thread.