kernel: sched: Change boolean APIs to return bool

Change APIs that essentially return a boolean expression  - 0 for
false and 1 for true - to return a bool.

MISRA-C rule 14.4

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2018-09-20 15:43:57 -07:00 committed by Anas Nashif
commit 02ed85bd82
7 changed files with 42 additions and 40 deletions

View file

@ -81,7 +81,7 @@ typedef struct {
struct _priq_rb waitq;
} _wait_q_t;
extern int _priq_rb_lessthan(struct rbnode *a, struct rbnode *b);
extern bool _priq_rb_lessthan(struct rbnode *a, struct rbnode *b);
#define _WAIT_Q_INIT(wait_q) { { { .lessthan_fn = _priq_rb_lessthan } } }