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:
parent
420bb62071
commit
02ed85bd82
7 changed files with 42 additions and 40 deletions
|
@ -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 } } }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue