list: Remove the unnecessary ? : operator
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
992747cef3
commit
306431d16f
@ -387,12 +387,12 @@ list_next_wrap(FAR struct list_node *list, FAR struct list_node *item)
|
||||
|
||||
static inline bool list_is_empty(FAR struct list_node *list)
|
||||
{
|
||||
return (list->next == list) ? true : false;
|
||||
return list->next == list;
|
||||
}
|
||||
|
||||
static inline bool list_is_clear(FAR struct list_node *list)
|
||||
{
|
||||
return (list->next == NULL) ? true : false;
|
||||
return list->next == NULL;
|
||||
}
|
||||
|
||||
static inline size_t list_length(FAR struct list_node *list)
|
||||
|
Loading…
x
Reference in New Issue
Block a user